[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible Arch Linux: drop useless pseudo-scheduler code, add support for triggering a build via pkg.needs_build files
Holger Levsen
holger at layer-acht.org
Thu Nov 30 21:02:18 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 b90c0a0d9b5d2577ba10b32e17592c12b92f3ea8
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu Nov 30 20:27:56 2017 +0000
reproducible Arch Linux: drop useless pseudo-scheduler code, add support for triggering a build via pkg.needs_build files
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_build_archlinux_pkg.sh | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index bc8299e..c6fdb16 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -89,20 +89,9 @@ choose_package() {
local REPO
local PKG
for REPO in $(echo $ARCHLINUX_REPOS | sed -s "s# #\n#g" | sort -R | xargs echo ); do
- case $REPO in
- core) MIN_AGE=7
- ;;
- extra|multilib) MIN_AGE=28
- ;;
- community) MIN_AGE=42
- ;;
- *) MIN_AGE=365 # should never happen…
- ;;
- esac
- touch -d "$(date -d "$MIN_AGE days ago" '+%Y-%m-%d') 00:00 UTC" $DUMMY
for PKG in $(cat ${ARCHLINUX_PKGS}_$REPO | cut -d ' ' -f1 | sort -R | xargs echo ) ; do
# build package if it has never build or at least $MIN_AGE days ago
- if [ ! -d $BASE/archlinux/$REPO/$PKG ] || [ $DUMMY -nt $BASE/archlinux/$REPO/$PKG ] ; then
+ if [ ! -d $BASE/archlinux/$REPO/$PKG ] || [ -f $BASE/archlinux/$REPO/$PKG/pkg.needs_build ] ; then
REPOSITORY=$REPO
SRCPACKAGE=$PKG
echo "$(date -u ) - building package $PKG from '$REPOSITORY' now..."
@@ -118,7 +107,6 @@ choose_package() {
break
fi
done
- rm $DUMMY > /dev/null
if [ -z $SRCPACKAGE ] ; then
echo "$(date -u ) - no package found to be build, sleeping 6h."
for i in $(seq 1 12) ; do
--
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