Commit a2af55ab authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-packages: add --short support for dpkg and rpm

parent 20c91b49
......@@ -28,9 +28,11 @@ case $PMTYPE in
;;
apt-dpkg)
CMD="dpkg -l $pkg_filenames"
[ -n "$short" ] && CMD="dpkg-query -W --showformat=\${Package}\n $pkg_filenames"
;;
yum-rpm|urpm-rpm|zypper-rpm|dnf-rpm)
CMD="rpm -qa $pkg_filenames"
[ -n "$short" ] && CMD="rpm -qa --queryformat %{name}\n $pkg_filenames"
;;
# Note: dnf has dnf list command
emerge)
......
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