xbps-src: more strict pattern matching for 'show-revdeps'.

This commit is contained in:
Juan RP 2011-11-16 17:32:32 +01:00
parent 0a237b27af
commit e2f28d0b7d

View file

@ -45,7 +45,7 @@ _show_shlib_pkg_deps()
{ {
local f j local f j
revshlibs=$(grep "$1" ${XBPS_SRCPKGDIR}/*/*.rshlibs) revshlibs=$(egrep "^${1}$" ${XBPS_SRCPKGDIR}/*/*.rshlibs)
for f in ${revshlibs}; do for f in ${revshlibs}; do
unset pkg revdepname tmprev unset pkg revdepname tmprev
revdepname=$(basename "$f") revdepname=$(basename "$f")
@ -65,7 +65,7 @@ show_pkg_revdeps()
[ -z "$1" ] && return 1 [ -z "$1" ] && return 1
shlibs=$(grep "$1" $SHLIBS_MAP|awk '{print $1}') shlibs=$(egrep "${1}[[:blank:]]+.*$" $SHLIBS_MAP|awk '{print $1}')
if [ -n "$shlibs" ]; then if [ -n "$shlibs" ]; then
# pkg provides shlibs # pkg provides shlibs
_show_shlib_pkg_deps "$shlibs" _show_shlib_pkg_deps "$shlibs"