[arch-projects] [devtools] [PATCH] commitpkg: Release to all repositories at once

Lukas Fleischer archlinux at cryptocrack.de
Sat Aug 20 16:20:19 EDT 2011


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

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 commitpkg |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/commitpkg b/commitpkg
index 244581f..416d592 100755
--- a/commitpkg
+++ b/commitpkg
@@ -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
-- 
1.7.6



More information about the arch-projects mailing list