Commit 203407b7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm_query_file: fix --short query for rpm

parent 7462b63b
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
PROGDIR=$(dirname "$0") PROGDIR=$(dirname "$0")
PROGNAME=$(basename "$0") PROGNAME=$(basename "$0")
# TODO: pwd for ./epm and which for epm
[ "$PROGDIR" = "." ] && PROGDIR=$(pwd) [ "$PROGDIR" = "." ] && PROGDIR=$(pwd)
if [ "$0" = "/dev/stdin" ] || [ "$0" = "sh" ] ; then if [ "$0" = "/dev/stdin" ] || [ "$0" = "sh" ] ; then
PROGDIR="" PROGDIR=""
......
...@@ -141,7 +141,7 @@ __do_short_query() ...@@ -141,7 +141,7 @@ __do_short_query()
local CMD local CMD
case $PMTYPE in case $PMTYPE in
*-rpm) *-rpm)
CMD="rpm -qf --queryformat %{NAME}\n" CMD="rpm -qf --queryformat '%{NAME}\\n'"
;; ;;
apt-dpkg) apt-dpkg)
showcmd dpkg -S "$1" showcmd dpkg -S "$1"
......
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