diff options
author | Juan RP <xtraeme@gmail.com> | 2014-04-09 06:55:43 +0000 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-04-09 06:55:43 +0000 |
commit | e5730173854c41392eb5de07a07653efe22d18ce (patch) | |
tree | 182c71a6d7a78cd489725daceede439b35b6bcf5 /common/hooks/post-install/99-pkglint.sh | |
parent | caf1a6257f3204c6c0b765debe45048c8f1dc88f (diff) | |
download | void-packages-e5730173854c41392eb5de07a07653efe22d18ce.tar void-packages-e5730173854c41392eb5de07a07653efe22d18ce.tar.gz void-packages-e5730173854c41392eb5de07a07653efe22d18ce.tar.bz2 void-packages-e5730173854c41392eb5de07a07653efe22d18ce.tar.lz void-packages-e5730173854c41392eb5de07a07653efe22d18ce.tar.xz void-packages-e5730173854c41392eb5de07a07653efe22d18ce.tar.zst void-packages-e5730173854c41392eb5de07a07653efe22d18ce.zip |
hooks/post-install/pkglint: fixed another issue in the shlib checks.
Diffstat (limited to 'common/hooks/post-install/99-pkglint.sh')
-rw-r--r-- | common/hooks/post-install/99-pkglint.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/hooks/post-install/99-pkglint.sh b/common/hooks/post-install/99-pkglint.sh index 6f3e1a32f8e..23f35da1b83 100644 --- a/common/hooks/post-install/99-pkglint.sh +++ b/common/hooks/post-install/99-pkglint.sh @@ -32,7 +32,12 @@ hook() { libname=${filename%.so*} _shlib=$(echo "$libname"|sed -E 's|\+|\\+|g') _pkgname=$(echo "$pkgname"|sed -E 's|\+|\\+|g') - grep -E "^${_shlib}\.so(.*)[[:blank:]]+${_pkgname}-[^-]+_[0-9]+$" $mapshlibs | { \ + if [ "$rev" = "$filename" ]; then + _pattern="^${_shlib}\.so[[:blank:]]+${_pkgname}-[^-]+_[0-9]+$" + else + _pattern="^${_shlib}\.so\.[0-9]+[[:blank:]]+${_pkgname}-[^-]+_[0-9]+$" + fi + grep -E "${_pattern}" $mapshlibs | { \ while read conflictFile conflictPkg; do found=1 conflictRev=${conflictFile#*.so.} |