From 9e5e86aa146f6a63880df5ae17340156f7315eb0 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 10 Jan 2015 19:36:35 +1000 Subject: 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 --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2