From a5dadc1f833f06f5cfa655fabfa37b54b6c168db Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 5 Jan 2014 22:13:47 -0500 Subject: librerelease: don't clean non-package files --- src/abslibre-tools/librerelease | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/abslibre-tools') diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index 1e07638..70ed128 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -101,13 +101,6 @@ sign_packages() { done } -# Remove everything that's not a package or a signature -clean_non_packages() { - find $WORKDIR/staging/ -type f \ - \! -iname "*.pkg.tar.?z" -a \! -iname "*.pkg.tar.?z.sig" \ - -delete -} - # Clean everything if not on dry-run mode clean_files() { local file_list=$1 @@ -212,7 +205,6 @@ release_packages() { lock 10 "${WORKDIR}/staging.lock" \ 'Waiting for an exclusive lock on the staging directory' - clean_non_packages sign_packages || return 1 # Make the permissions of the packages 644 otherwise the user will get access -- cgit v1.2.3-2-g168b