Commit 74f3e1cb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-filelist: skip update when sudo is missed

parent f264fecd
......@@ -56,8 +56,9 @@ __epm_filelist_remote()
docmd_foreach __alt_local_content_filelist $@
;;
apt-dpkg)
assure_exists apt-file
sudocmd apt-file update
assure_exists apt-file || return
# if sudo requires a password, skip autoupdate
sudo -n true 2>/dev/null && sudocmd apt-file update || info "sudo requires a password, skip apt-file update"
docmd_foreach __deb_local_content_filelist $@
;;
*)
......
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