xbps-src: better regexp for show-revdeps target.

This commit is contained in:
Juan RP 2011-11-03 15:55:51 +01:00
parent f3ac3b2877
commit 795ce57f15

View file

@ -30,7 +30,7 @@ show_pkg_revdeps()
[ -z "$1" ] && return 1
for f in $(find ${XBPS_SRCPKGDIR} -type f -name \*template); do
if ! egrep -q "^Add_dependency[[:blank:]]+(run|full|build)[[:blank:]]+${1}$" $f; then
if ! egrep -q "^Add_dependency[[:blank:]]+(run|full|build)[[:blank:]]+${1}([[:space:]]+\".*\")*$" $f; then
continue
fi
tmplf=$(basename $f)