xbps-src: 'show-revdeps' now works when no -devel pkg exists, i.e libgcc.

This commit is contained in:
Juan RP 2011-11-17 10:18:40 +01:00
parent 74cd8ace29
commit 4e151281f7

View File

@ -70,7 +70,7 @@ show_pkg_revdeps()
_pkgn=$(echo "$1"|sed 's|\+|\\+|g') _pkgn=$(echo "$1"|sed 's|\+|\\+|g')
shlibs=$(grep -E "^lib.*\.so\.[[:digit:]]+[[:blank:]]+${_pkgn}[[:blank:]]+.*$" $SHLIBS_MAP|awk '{print $1}') shlibs=$(grep -E "^lib.*\.so\.[[:digit:]]+[[:blank:]]+${_pkgn}[[: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"