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

epm_query_file: fix --short query for rpm

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