summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-11 14:39:51 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-11 14:39:51 +0100
commitf1eb745cc2ea25833ebb8c069d97c429922c4337 (patch)
tree474ac35aae6cb59ad49517e7168c4b090b6fe5ac /bin
parent77ecda496b8ef4ef0994e3ccecfb63cafb3221ae (diff)
downloadjenkins.debian.net-f1eb745cc2ea25833ebb8c069d97c429922c4337.tar.xz
reproducible archlinux: refactor
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build_archlinux_pkg.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index a15f7bf6..64b5c3ee 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -39,9 +39,8 @@ handle_remote_error() {
exit 0
}
-choose_package() {
- echo "$(date -u ) - about to choose a package to be build"
- # every 2 days we check for new archlinux packages
+update_archlinux_repositories() {
+ # every 2 days we check for new archlinux packages in all tested repositories
touch -d "$(date -d '2 days ago' '+%Y-%m-%d') 00:00 UTC" $DUMMY
local SESSION="archlinux-scheduler-$RANDOM"
schroot --begin-session --session-name=$SESSION -c jenkins-reproducible-archlinux
@@ -56,6 +55,12 @@ choose_package() {
done
schroot --end-session -c $SESSION
rm $DUMMY > /dev/null
+}
+
+choose_package() {
+ echo "$(date -u ) - choosing package to be build."
+ update_archlinux_repositories
+ local REPO
local PKG
for REPO in $ARCHLINUX_REPOS ; do
case $REPO in