summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-01-10 10:36:35 +0100
committerAllan McRae <allan@archlinux.org>2015-01-11 09:56:44 +0100
commit9e5e86aa146f6a63880df5ae17340156f7315eb0 (patch)
tree681489cc33d3c95727c426ad0417737946892a02
parent89b9e9d1dced68587b704cb9e9a2aab55fb60b06 (diff)
downloadpacman-9e5e86aa146f6a63880df5ae17340156f7315eb0.tar.gz
pacman-9e5e86aa146f6a63880df5ae17340156f7315eb0.tar.xz
makepkg: fix removing static libraries when shared use absolute symlinks
When a shared library uses an absolute symlink for its its .so file, the check if the shared version of a static library exists fails. Test for the presence of a broken symlink too. Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 1cd8756d..873b7d29 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1832,7 +1832,7 @@ tidy_install() {
# check existence of backup files
local file
for file in "${backup[@]}"; do
- if [[ ! -f $file ]]; then
+ if [[ ! -f $file && ! -h $file ]]; then
warning "$(gettext "%s entry file not in package : %s")" "backup" "$file"
fi
done