[Qa-jenkins-scm] [jenkins.debian.net] 01/04: reproducible Arch Linux: also schedule 'old' packages which havent been tested yet

Holger Levsen holger at layer-acht.org
Fri Dec 1 22:06:00 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 735a2b366184b48c5f1d222bae7fdf4963307a77
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Dec 1 21:54:41 2017 +0000

    reproducible Arch Linux: also schedule 'old' packages which havent been tested yet
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_archlinux_scheduler.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_archlinux_scheduler.sh b/bin/reproducible_archlinux_scheduler.sh
index 3fbbf00..2e3f685 100755
--- a/bin/reproducible_archlinux_scheduler.sh
+++ b/bin/reproducible_archlinux_scheduler.sh
@@ -40,13 +40,15 @@ update_archlinux_repositories() {
 					echo "$(date -u ) - scheduling new package $REPO/$pkgbase... "
 					mkdir -p $BASE/archlinux/$REPO/$pkgbase
 					touch $BASE/archlinux/$REPO/$pkgbase/pkg.needs_build
-				else
-					VERSION=$(cat $BASE/archlinux/$REPO/$pkgbase/pkg.version 2>/dev/null || echo 0.rb-unknown-1)
+				elif [ -z "$(ls $BASE/archlinux/$REPO/$pkgbase/)" ] ; then
+					if [ $(find $BASE/archlinux/ -name pkg.needs_build | wc -l ) -le 500 ] ; then
+						touch $BASE/archlinux/$REPO/$pkgbase/pkg.needs_build
+					fi
+				elif	VERSION=$(cat $BASE/archlinux/$REPO/$pkgbase/pkg.version 2>/dev/null || echo 0.rb-unknown-1)
 					if [ "$VERSION" != "0.rb-unknown-1" ] && [ ! -f $BASE/archlinux/$REPO/$pkgbase/pkg.needs_build ] ; then
 						if [ "$(schroot --run-session -c $SESSION --directory /var/tmp -- vercmp $version $VERSION)" = "1" ] ; then
 							echo $REPO/$pkgbase >> $UPDATED
 							echo "$(date -u ) - we know about $REPO/$pkgbase $VERSION, but the repo has $version, so rescheduling... "
-							mkdir -p $BASE/archlinux/$REPO/$pkgbase
 							touch $BASE/archlinux/$REPO/$pkgbase/pkg.needs_build
 						fi
 					fi

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