commitpkg: upload signatures if available

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Dan McGee 2011-04-01 16:35:35 -05:00 committed by Pierre Schmitz
parent c955ecf35d
commit c16e7c25c9
1 changed files with 6 additions and 1 deletions

View File

@ -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