index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Florian Pritz <bluewind@xinu.at> | 2012-03-04 19:23:25 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-05 11:44:34 -0600 |
commit | ea7fc8962a819a04237876995140363a818202d4 (patch) | |
tree | edcb1a1ea789ad7216733c7dbb2ccf00baed949c /scripts | |
parent | fbfcd8665086f71b65370e919105194111b4b5f1 (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 3 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 21cbfab8..7c86b77f 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1152,7 +1152,8 @@ write_pkginfo() { if [[ $it = *.so ]]; then # check if the entry has been found by find_libdepends # if not, it's unneeded; tell the user so he can remove it - if [[ ! $libdepends =~ (^|\s)${it}=.* ]]; then + printf -v re '(^|\s)%s=.*' "$it" + if [[ ! $libdepends =~ $re ]]; then error "$(gettext "Cannot find library listed in %s: %s")" "'depends'" "$it" return 1 fi |