summaryrefslogtreecommitdiff
path: root/commitpkg
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-01 16:35:35 -0500
committerPierre Schmitz <pierre@archlinux.de>2011-04-02 00:26:33 +0200
commitc16e7c25c9432e0d2f0fdeea30f08ad2ffe6950b (patch)
treed2640f94630670abbbf5fa4a46c3b506a8f2d735 /commitpkg
parentc955ecf35d34c9121e7709b705d924976ad64923 (diff)
downloaddevtools-c16e7c25c9432e0d2f0fdeea30f08ad2ffe6950b.tar.xz
commitpkg: upload signatures if available
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'commitpkg')
-rwxr-xr-xcommitpkg7
1 files changed, 6 insertions, 1 deletions
diff --git a/commitpkg b/commitpkg
index ed2254c..a0a5628 100755
--- a/commitpkg
+++ b/commitpkg
@@ -129,12 +129,17 @@ for _arch in ${arch[@]}; do
continue 2
fi
uploads+=("$pkgfile")
+
+ sigfile="${pkgfile}.sig"
+ if [ -f "${sigfile}" ]; then
+ uploads+=("$sigfile")
+ fi
done
archrelease $repo-${_arch} || abort
done
if [[ ${#uploads[*]} -gt 0 ]]; then
- echo 'uploading all package files'
+ echo 'uploading all package and signature files'
rsync $rsyncopts "${uploads[@]}" "$server:staging/$repo/" || abort
fi