diff options
author | Erich Eckner <git@eckner.net> | 2020-05-06 10:35:34 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-05-06 10:35:34 +0200 |
commit | 9ef576d11e1fb4407f059af9421289ec80e05622 (patch) | |
tree | c6cb8c68249e66a6f922f5cb56fc7a014d553f84 | |
parent | e25fa8a44c98b460a4a0cce52741dfe63ffc969c (diff) | |
download | archlinuxewe.git.save-9ef576d11e1fb4407f059af9421289ec80e05622.tar.xz |
advertise-provided-libraries.PKGBUILDpatch: do nothing if /usr/lib does not exist
-rw-r--r-- | advertise-provided-libraries.PKGBUILDpatch | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/advertise-provided-libraries.PKGBUILDpatch b/advertise-provided-libraries.PKGBUILDpatch index fd3700b0..392c321e 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 |