Commit b8e4364d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-print: check for file when detect if it is package

parent 3d762786
......@@ -26,7 +26,7 @@ query_package_field()
shift
local INSTALLED="-p"
# if not file, drop -p for get from rpm base
[ -e "$1" ] || INSTALLED=""
[ -f "$1" ] || INSTALLED=""
rpmquery $INSTALLED --queryformat "$FORMAT" "$@"
}
......
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