[arch-dev-public] [PATCH 2/2] Upload package signature file if available
Allan McRae
allan at archlinux.org
Sat Mar 12 22:24:21 EST 2011
Signed-off-by: Allan McRae <allan at archlinux.org>
---
commitpkg | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/commitpkg b/commitpkg
index 390f99e..5bf8d65 100755
--- a/commitpkg
+++ b/commitpkg
@@ -117,9 +117,16 @@ for _arch in ${arch[@]}; do
echo "skipping ${_arch}"
continue 2
fi
+
+ if [ ! -f "$pkgfile.sig" ]; then
+ echo "WARNING: No package signature found"
+ fi
echo -n 'uploading '
rsync -p --chmod 'ug=rw,o=r' -c -h -L --progress $rsyncopts --partial "${pkgfile}" -e ssh "$server:staging/$repo/${pkgfile##*/}" || abort
+ if [ -f "$pkgfile.sig" ]; then
+ rsync -p --chmod 'ug=rw,o=r' -c -h -L --progress $rsyncopts --partial "${pkgfile}.sig" -e ssh "$server:staging/$repo/${pkgfile##*/}.sig" || abort
+ fi
done
archrelease $repo-${_arch} || abort
done
--
1.7.4.1
More information about the arch-dev-public
mailing list