From ec1254321b7083f40840fc122db24c0102a677d7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 24 May 2015 22:33:47 -0600 Subject: librerelease: Don't sign XBS files. https://labs.parabola.nu/issues/566 --- src/abslibre-tools/librerelease | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index 54d7b7f..fdefcc5 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -82,7 +82,12 @@ create_signature() { } sign_packages() { - for file in $(find "${WORKDIR}/staging/" -type f -not \( -iname '*.sig' -o -name '*.lock' \) ); do + IFS=$'\n' + local files=($(find "${WORKDIR}/staging/" \ + \( -type d -name "${ABSLIBREDEST##*/}" \) -prune \ + -o \( -type f -not -iname '*.sig' \) -print)) + local file + for file in "${files[@]}"; do if [[ -f "${file}.sig" ]]; then msg2 "File signature found, verifying..." @@ -163,7 +168,7 @@ main() { load_files makepkg check_vars makepkg GPGKEY load_files libretools - check_vars libretools WORKDIR REPODEST || return 1 + check_vars libretools WORKDIR REPODEST ABSLIBREDEST || return 1 REPODEST+='/staging/' # The following settings are actually optional #check_vars libretools HOOKPRERELEASE HOOKPOSTRELEASE || return 1 -- cgit v1.2.3-54-g00ecf