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