Commit 68f14591 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-update: ask sudo before >/dev/null

parent d2888028
...@@ -52,9 +52,11 @@ __save_available_packages() ...@@ -52,9 +52,11 @@ __save_available_packages()
[ -d /etc/bash_completion.d ] || return 0 [ -d /etc/bash_completion.d ] || return 0
# HACK: too much time (5 minutes) on deb systems in a docker # HACK: too much time (5 minutes) on deb systems in a docker
[ $PMTYPE = "apt-dpkg" ] && return 0 # [ $PMTYPE = "apt-dpkg" ] && return 0
info "Retrieving list of all available packages (for autocompletion) ..." info "Retrieving list of all available packages (for autocompletion) ..."
# can ask sudo later
set_sudo
load_helper epm-list_available load_helper epm-list_available
short=--short update=update epm_list_available | sort | sudorun tee $epm_vardir/available-packages >/dev/null short=--short update=update epm_list_available | sort | sudorun tee $epm_vardir/available-packages >/dev/null
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment