Commit 265ead08 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-filelist: fix sudo checking

parent 557a796a
......@@ -61,8 +61,7 @@ __epm_filelist_remote()
;;
apt-dpkg)
assure_exists apt-file || return
# TODO: improve me
if sudorun -n true 2>/dev/null ; then
if sudo_allowed ; then
sudocmd apt-file update
else
info "sudo requires a password, skip apt-file update"
......
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