From e2f28d0b7d43c96443427816d90104db1f385811 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 16 Nov 2011 17:32:32 +0100 Subject: [PATCH] xbps-src: more strict pattern matching for 'show-revdeps'. --- xbps-src/shutils/show_revdeps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xbps-src/shutils/show_revdeps.sh b/xbps-src/shutils/show_revdeps.sh index 1d6a967a317..c96af78615c 100644 --- a/xbps-src/shutils/show_revdeps.sh +++ b/xbps-src/shutils/show_revdeps.sh @@ -45,7 +45,7 @@ _show_shlib_pkg_deps() { local f j - revshlibs=$(grep "$1" ${XBPS_SRCPKGDIR}/*/*.rshlibs) + revshlibs=$(egrep "^${1}$" ${XBPS_SRCPKGDIR}/*/*.rshlibs) for f in ${revshlibs}; do unset pkg revdepname tmprev revdepname=$(basename "$f") @@ -65,7 +65,7 @@ show_pkg_revdeps() [ -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 # pkg provides shlibs _show_shlib_pkg_deps "$shlibs"