Commit cb1a0b43 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-query_file: query package for every full path, not only last

parent 04bfeaa5
......@@ -23,7 +23,7 @@ load_helper epm-search_file
# copied from etersoft-build-utils/bin/rpmqf
# use and modify TOFILE recursively
real_file()
__do_query_real_file()
{
local LINKTO1 LINKTO
local TOFILE
......@@ -40,9 +40,10 @@ real_file()
# get value of symbolic link
if [ -L "$TOFILE" ] ; then
__do_query $TOFILE
LINKTO=`readlink "$TOFILE"`
echo "Note: $TOFILE is link to $LINKTO"
real_file "$LINKTO"
__do_query_real_file "$LINKTO"
fi
FULLFILEPATH=`realpath $TOFILE`
}
......@@ -102,7 +103,7 @@ epm_query_file()
[ -n "$pkg_filenames" ] || fatal "Run query without file names"
for pkg in $pkg_filenames ; do
real_file "$pkg"
__do_query_real_file "$pkg"
__do_query $FULLFILEPATH || pkg_filenames=$pkg epm_search_file
done
......
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