Commit 3b536ae7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-filelist: add support with yum and dnf

parent 2ada85a2
......@@ -55,14 +55,21 @@ __epm_filelist_remote()
case $PMTYPE in
apt-rpm)
# TODO: use RESTful interface to prometeus? See ALT bug #29496
docmd_foreach __alt_local_content_filelist $@
docmd_foreach __alt_local_content_filelist "$@"
;;
apt-dpkg)
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 $@
docmd_foreach __deb_local_content_filelist "$@"
;;
yum-rpm)
assure_exists yum-utils || return
repoquery -q -l "$@"
;;
dnf-rpm)
assure_exists dnf-plugins-core || return
dnf repoquery -l "$@"
*)
fatal "Query filelist for non installed packages is not implemented yet."
;;
......
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