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

epm-filelist: fix sudo checking

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