diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-12-15 03:43:46 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-12-15 03:43:46 +0100 |
commit | e8fa5d1e69459f96e5b356b907e3ea01df809752 (patch) | |
tree | c21f07c5ec11be336e1a74b2dbee4993a5cd2679 /bin | |
parent | e167a4044b0dc69034aa203d5a31499b23b587d1 (diff) | |
download | jenkins.debian.net-e8fa5d1e69459f96e5b356b907e3ea01df809752.tar.xz |
reproducible archlinux: fix two subtle bugs, preventing the packages list to be updated and causing always the last repo to be choosen
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build_archlinux_pkg.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh index ed3847ab..0dab2b36 100755 --- a/bin/reproducible_build_archlinux_pkg.sh +++ b/bin/reproducible_build_archlinux_pkg.sh @@ -49,7 +49,6 @@ update_archlinux_repositories() { NEED_UPDATE=true fi done - rm $DUMMY > /dev/null if $NEED_UPDATE ; then local SESSION="archlinux-scheduler-$RANDOM" schroot --begin-session --session-name=$SESSION -c jenkins-reproducible-archlinux @@ -65,6 +64,7 @@ update_archlinux_repositories() { else echo "$(date -u ) - repositories recent enough, no update needed." fi + rm $DUMMY > /dev/null } choose_package() { @@ -90,11 +90,14 @@ choose_package() { # very simple locking… mkdir -p $BASE/archlinux/$REPOSITORY/$PKG touch $BASE/archlinux/$REPOSITORY/$PKG - # break out of the loop and then out of this function too, - # to build this package… + # break out of the loop (and then out of the next loop too...) break fi done + # if we broke out of the previous loop we have choosen a package + if [ ! -z "$SRCPACKAGE" ] ; then + break + fi done if [ -z $SRCPACKAGE ] ; then echo "$(date -u ) - no package found to be build, sleeping 6h." |