[Qa-jenkins-scm] [jenkins.debian.net] 05/05: reproducible Arch Linux: update the pkg.html after a package was build again
Holger Levsen
holger at layer-acht.org
Fri Dec 8 23:36:14 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 1d25cca5e154e370d25f75f02ade8b9d23188ba5
Author: Holger Levsen <holger at layer-acht.org>
Date: Fri Dec 8 23:36:06 2017 +0000
reproducible Arch Linux: update the pkg.html after a package was build again
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_html_archlinux.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index 60366b4..8a7ccb0 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -52,6 +52,13 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do
echo "$(date -u ) - ignoring $PKG from '$REPOSITORY' which is building in $ARCHLINUX_PKG_PATH since $(LANG=C TZ=UTC ls --full-time -d $ARCHLINUX_PKG_PATH | cut -d ':' -f1-2 | cut -d " " -f6-) UTC"
continue
fi
+ # regenerate pkg.html if package has been rebuild
+ if [ -f $ARCHLINUX_PKG_PATH/pkg.state ] && [ -f $ARCHLINUX_PKG_PATH/build1.log ] ; then
+ if [ $ARCHLINUX_PKG_PATH/build1.log -nt $ARCHLINUX_PKG_PATH/pkg.state ] ; then
+ rm $ARCHLINUX_PKG_PATH/pkg.state
+ echo "$(date -u ) - $PKG from '$REPOSITORY' has been newly build, updating the html."
+ fi
+ fi
if [ ! -f $ARCHLINUX_PKG_PATH/pkg.state ] ; then
if [ -f $ARCHLINUX_PKG_PATH/pkg.version ] ; then
VERSION=$(cat $ARCHLINUX_PKG_PATH/pkg.version)
--
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