summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-05-04 09:34:41 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-05-04 09:34:41 +0200
commit633cd9e55930370c3c382ab74a36a2eb4d0f88b0 (patch)
tree54791e21212c55409356fd17b4b76da2ed8a8806 /core
parentbe9cdccb75dabf2a8b9bfe8384546a2c57417bb0 (diff)
downloadpackages-633cd9e55930370c3c382ab74a36a2eb4d0f88b0.tar.xz
core/glibc2: test of installed-tests before deleting
Diffstat (limited to 'core')
-rw-r--r--core/glib2/PKGBUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/glib2/PKGBUILD b/core/glib2/PKGBUILD
index d30aef16..5589754c 100644
--- a/core/glib2/PKGBUILD
+++ b/core/glib2/PKGBUILD
@@ -23,3 +23,11 @@ if [ "${CARCH}" = "i486" ]; then
'
)"
fi
+
+# remove usr/lib/installed-tests only if it exists
+eval "$(
+ declare -f package_glib2 | \
+ sed '
+ s@rm -r "$pkgdir/usr/lib/installed-tests@test -f "$pkgdir/usr/lib/installed-tests" \&\& rm -r "$pkgdir/usr/lib/installed-tests@
+ '
+)"