diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-05-04 09:34:41 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-05-04 09:34:41 +0200 |
commit | 633cd9e55930370c3c382ab74a36a2eb4d0f88b0 (patch) | |
tree | 54791e21212c55409356fd17b4b76da2ed8a8806 | |
parent | be9cdccb75dabf2a8b9bfe8384546a2c57417bb0 (diff) | |
download | packages-633cd9e55930370c3c382ab74a36a2eb4d0f88b0.tar.xz |
core/glibc2: test of installed-tests before deleting
-rw-r--r-- | core/glib2/PKGBUILD | 8 |
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@ + ' +)" |