diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-08-22 13:36:04 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-08-22 13:36:04 -0300 |
commit | 2dd17dbe005b9d87a1d629e8fb029ae10f493790 (patch) | |
tree | 83fcf1b2d1e7b9fe97cb4955bce7d1dac848deb4 /librerelease | |
parent | b8d0640c2d882e514a583e372bb26280a60aa604 (diff) | |
parent | b3b52d5c4a3cbcdeb505b099230107b830290e8e (diff) |
Merge branch 'master' into newroot
Conflicts:
treepkg
Diffstat (limited to 'librerelease')
-rwxr-xr-x | librerelease | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/librerelease b/librerelease index c113572..c4d97c1 100755 --- a/librerelease +++ b/librerelease @@ -66,8 +66,6 @@ function sign_packages { if ! gpg --quiet --verify "${package}${SIGEXT}" >/dev/null 2>&1; then error "Failed! Resigning..." rm -f "${package}${SIGEXT}" - else - continue fi fi @@ -91,7 +89,7 @@ function clean_non_packages { # Clean everything if not on dry-run mode function clean { [ -z ${dryrun} ] && \ - find ${WORKDIR}/staging/ -type f -delete + rm -f $@ } if [ -w / ]; then @@ -116,7 +114,7 @@ clean_non_packages if [ ! -z "${SIGID}" ]; then sign_packages else - error "Package signing is *required*" + error "Package signing is *required*, please set SIGID on your libretools.conf" exit 1 fi @@ -126,6 +124,9 @@ fi find ${WORKDIR}/staging -type f -exec chmod 644 {} \; find ${WORKDIR}/staging -type d -exec chmod 755 {} \; +# Get the synced files +SYNCED_FILES=($(find ${WORKDIR}/staging -type f)) + msg "Uploading packages..." rsync --recursive \ ${dryrun} \ @@ -144,8 +145,8 @@ rsync --recursive \ exit 1 } -msg "Removing packages from local [staging]" -clean +msg "Removing ${#SYNCED_FILES[@]} files from local [staging]" +clean ${SYNCED_FILES[@]} msg "Running db-update on repos" ssh ${PARABOLAHOST} dbscripts/db-update |