[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: improvements to re-rsync old data

Holger Levsen gitlab at salsa.debian.org
Wed Feb 26 21:56:34 GMT 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
12dc45b4 by Holger Levsen at 2020-02-26T22:56:13+01:00
reproducible Debian: improvements to re-rsync old data

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/rsync2buildinfos.debian.net


Changes:

=====================================
bin/rsync2buildinfos.debian.net
=====================================
@@ -1,7 +1,7 @@
 #!/bin/bash
 # vim: set noexpandtab:
 
-# Copyright 2019 Holger Levsen <holger at layer-acht.org>
+# Copyright 2019-2020 Holger Levsen <holger at layer-acht.org>
 # released under the GPLv2
 
 ###################################################################
@@ -32,6 +32,7 @@ rsync_month(){
 }
 
 rsync_year(){
+	local YEAR=$1
 	echo "$(date -u) - rsyncing .buildinfo files for $YEAR..." >> $LOG
 	rsync -e ssh -av $YEAR jenkins@$TARGETHOST:$TARGETDIR/ >> $LOG 2>&1
 }
@@ -42,13 +43,14 @@ rsync_year(){
 cd $SOURCEDIR
 if [ -n "$1" ] ; then
 	for i in $(seq 2016 $YEAR) ; do
-		rsync_year
+		rsync_year $i
 	done
 else
 	if [ "$DAY" = "01" ] && [ "$MONTH" = "01" ] ; then
+		# this needs to be done first to create the year directory
 		# even though we do this several times a day
 		# it's ok, because the year is young :)
-		rsync_year
+		rsync_year $YEAR
 	elif [ "$DAY" = "01" ] ; then
 		# see comment above
 		rsync_month



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/12dc45b4096680b5578500a5d1a3eb39dbaf5e68

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/12dc45b4096680b5578500a5d1a3eb39dbaf5e68
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200226/c6e1fb9c/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list