From 07e9247b6c175f1353fcd78859af1d974a97dbd5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 11 Dec 2015 14:14:49 +0100 Subject: reproducible archlinux: rebuild all of 'core' every week, rebuild all of 'extra' every month --- bin/reproducible_build_archlinux_pkg.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin/reproducible_build_archlinux_pkg.sh') diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh index f1d7a503..eb0d8ad1 100755 --- a/bin/reproducible_build_archlinux_pkg.sh +++ b/bin/reproducible_build_archlinux_pkg.sh @@ -56,9 +56,15 @@ choose_package() { schroot --end-session -c $SESSION rm $DUMMY > /dev/null for REPOSITORY in core extra ; do + case $REPOSITORY in + core) MIN_AGE=6 + ;; + extra) MIN_AGE=27 + ;; + esac for PKG in $(cat ${ARCHLINUX_PKGS}_$REPOSITORY) ; do - # build package if it has never build or at least a week ago - if [ ! -d $BASE/archlinux/$REPOSITORY/$PKG ] || [ ! -z $(find $BASE/archlinux/$REPOSITORY/ -name $PKG -mtime +6) ] ; then + # build package if it has never build or at least $MIN_AGE days ago + if [ ! -d $BASE/archlinux/$REPOSITORY/$PKG ] || [ ! -z $(find $BASE/archlinux/$REPOSITORY/ -name $PKG -mtime +$MIN_AGE) ] ; then SRCPACKAGE=$PKG echo "$(date -u ) - building package $PKG from '$REPOSITORY' now..." # very simple locking… -- cgit v1.2.3-70-g09d2