Commit e4940623 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-query_file: follow a link ever if the link is not from a package

parent 6d3e3852
......@@ -47,20 +47,27 @@ __do_query_real_file()
fi
fi
[ -n "$TOFILE" ] || return
local RES
if [ -n "$short" ] ; then
__do_short_query "$TOFILE" || return
__do_short_query "$TOFILE"
RES=$?
else
__do_query "$TOFILE" || return
__do_query "$TOFILE"
RES=$?
fi
# get value of symbolic link
if [ -n "$TOFILE" ] && [ -L "$TOFILE" ] ; then
if [ -L "$TOFILE" ] ; then
local LINKTO
LINKTO=$(readlink -- "$TOFILE")
info " > $TOFILE is link to $LINKTO"
LINKTO=$(readlink -f -- "$TOFILE")
__do_query_real_file "$LINKTO"
return
else
return $RES
fi
}
......
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