From 6bb16022259e230b3b779939d612e8c761ab8b61 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 27 Mar 2014 10:11:58 +0100 Subject: [PATCH] hooks/post-install/99-pkglint: detect sonames with pkgnames containing '+' chars (gtk+). --- common/hooks/post-install/99-pkglint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/hooks/post-install/99-pkglint.sh b/common/hooks/post-install/99-pkglint.sh index 2d41e1cd844..2c83b77c864 100644 --- a/common/hooks/post-install/99-pkglint.sh +++ b/common/hooks/post-install/99-pkglint.sh @@ -28,7 +28,8 @@ hook() { for filename in `cat ${PKGDESTDIR}/shlib-provides`; do rev=${filename#*.so.} libname=${filename%.so*} - grep -E "^${libname}\.so[\.0-9.]*[[:blank:]]+${pkgname}-[^-]+_[0-9]+$" $mapshlibs | { \ + _pkgname=$(echo "$pkgname"|sed -E 's|\+|\\+|g') + grep -E "^${libname}\.so[\.0-9.]*[[:blank:]]+${_pkgname}-[^-]+_[0-9]+$" $mapshlibs | { \ while read conflictFile conflictPkg; do found=1 conflictRev=${conflictFile#*.so.}