summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build_archlinux_pkg.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-11 14:36:12 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-11 14:36:12 +0100
commit77ecda496b8ef4ef0994e3ccecfb63cafb3221ae (patch)
tree9e022305cb90182b199ada641386610c6f3a7809 /bin/reproducible_build_archlinux_pkg.sh
parent34d41585eb606e747f02bb9c411821e3e5ecb009 (diff)
downloadjenkins.debian.net-77ecda496b8ef4ef0994e3ccecfb63cafb3221ae.tar.xz
reproducible archlinux: refactor, define repositories once
Diffstat (limited to 'bin/reproducible_build_archlinux_pkg.sh')
-rwxr-xr-xbin/reproducible_build_archlinux_pkg.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index 38f51a2b..a15f7bf6 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -46,7 +46,7 @@ choose_package() {
local SESSION="archlinux-scheduler-$RANDOM"
schroot --begin-session --session-name=$SESSION -c jenkins-reproducible-archlinux
local REPO
- for REPO in core extra ; do
+ for REPO in $ARCHLINUX_REPOS ; do
if [ ! -f ${ARCHLINUX_PKGS}_$REPO ] || [ $DUMMY -nt ${ARCHLINUX_PKGS}_$REPO ] ; then
echo "$(date -u ) - updating list of available packages in repository '$REPO'."
schroot --run-session -c $SESSION --directory /var/abs/$REPO -- ls -1|sort -R|xargs echo > ${ARCHLINUX_PKGS}_$REPO
@@ -57,12 +57,14 @@ choose_package() {
schroot --end-session -c $SESSION
rm $DUMMY > /dev/null
local PKG
- for REPO in core extra ; do
+ for REPO in $ARCHLINUX_REPOS ; do
case $REPO in
core) MIN_AGE=6
;;
extra) MIN_AGE=27
;;
+ *) MIN_AGE=99 # should never happen…
+ ;;
esac
for PKG in $(cat ${ARCHLINUX_PKGS}_$REPO) ; do
# build package if it has never build or at least $MIN_AGE days ago