Commit 61010062 authored by Lukas Fleischer's avatar Lukas Fleischer Committed by Pierre Schmitz
Browse files

commitpkg: Release to all repositories at once



Make use of archrelease's multi-tag capability invoke it once instead of
re-launching it for for each individual tag.

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
parent 6ef4d5f3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -172,9 +172,14 @@ for _arch in ${arch[@]}; do
			abort "Signature ${pkgfile}.sig was not found"
		fi
	done
	archrelease $repo-${_arch} || abort
done

if [[ -n $commit_arch ]]; then
	archrelease "$repo-$commit_arch" || abort
else
	archrelease "${arch[@]/#/$repo-}" || abort
fi

if [[ ${#uploads[*]} -gt 0 ]]; then
	echo 'uploading all package and signature files'
	rsync "${rsyncopts[@]}" "${uploads[@]}" "$server:staging/$repo/" || abort