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