From c16e7c25c9432e0d2f0fdeea30f08ad2ffe6950b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 1 Apr 2011 16:35:35 -0500 Subject: commitpkg: upload signatures if available Signed-off-by: Dan McGee Signed-off-by: Pierre Schmitz --- commitpkg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'commitpkg') 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 -- cgit v1.2.3-70-g09d2