From 9ef576d11e1fb4407f059af9421289ec80e05622 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 6 May 2020 10:35:34 +0200 Subject: advertise-provided-libraries.PKGBUILDpatch: do nothing if /usr/lib does not exist --- advertise-provided-libraries.PKGBUILDpatch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'advertise-provided-libraries.PKGBUILDpatch') diff --git a/advertise-provided-libraries.PKGBUILDpatch b/advertise-provided-libraries.PKGBUILDpatch index fd3700b0a..392c321ef 100644 --- a/advertise-provided-libraries.PKGBUILDpatch +++ b/advertise-provided-libraries.PKGBUILDpatch @@ -1,7 +1,9 @@ if printf '%s\n' "${arch[@]}" | grep -qvxF any; then - provides+=( - $( - find "${pkgdir}/usr/lib" -name '*.so' -printf '%f\n' + if [ -d "${pkgdir}/usr/lib" ]; then + provides+=( + $( + find "${pkgdir}/usr/lib" -name '*.so' -printf '%f\n' + ) ) - ) + fi fi -- cgit v1.2.3-70-g09d2