[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Arch Linux: improve output

Holger Levsen holger at layer-acht.org
Fri Dec 1 13:33:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 69843e1169f10e2ad8c5e0b7e5b2423a5208fa79
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Dec 1 13:31:22 2017 +0000

    reproducible Arch Linux: improve output
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_archlinux_scheduler.sh | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_archlinux_scheduler.sh b/bin/reproducible_archlinux_scheduler.sh
index 2c67e14..7c8e9eb 100755
--- a/bin/reproducible_archlinux_scheduler.sh
+++ b/bin/reproducible_archlinux_scheduler.sh
@@ -13,8 +13,6 @@ common_init "$@"
 set -e
 
 update_archlinux_repositories() {
-	UPDATED=0
-	NEW=0
 	local SESSION="archlinux-scheduler-$RANDOM"
 	schroot --begin-session --session-name=$SESSION -c jenkins-reproducible-archlinux
 	schroot --run-session -c $SESSION --directory /var/tmp -- sudo pacman -Syu --noconfirm
@@ -49,10 +47,8 @@ update_archlinux_repositories() {
 						fi
 					fi
 				fi
-				printf '%s %s\n' "$pkgbase" "$version"
 			done > "$ARCHLINUX_PKGS"_"$REPO"
-		echo "$(date -u ) - these packages in repository '$REPO' are known to us:"
-		cat ${ARCHLINUX_PKGS}_$REPO
+		echo "$(date -u ) - $(cat ${ARCHLINUX_PKGS}_$REPO | wc -l) packages in repository '$REPO' are known to us:"
 	done
 	rm "$ARCHLINUX_PKGS"_full_pkgbase_list
 	schroot --end-session -c $SESSION
@@ -63,6 +59,8 @@ update_archlinux_repositories() {
 }
 
 echo "$(date -u ) - Updating Arch Linux repositories."
+UPDATED=0
+NEW=0
 update_archlinux_repositories
 
 # vim: set sw=0 noet :

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list