From 633cd9e55930370c3c382ab74a36a2eb4d0f88b0 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 4 May 2019 09:34:41 +0200 Subject: core/glibc2: test of installed-tests before deleting --- core/glib2/PKGBUILD | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/glib2') 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@ + ' +)" -- cgit v1.2.3-70-g09d2