[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Archlinux: remove double/old artifacts

Holger Levsen gitlab at salsa.debian.org
Tue Sep 18 21:14:24 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
f350de87 by Holger Levsen at 2018-09-18T20:14:10Z
reproducible Archlinux: remove double/old artifacts

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- TODO
- bin/reproducible_html_archlinux.sh


Changes:

=====================================
TODO
=====================================
@@ -309,9 +309,6 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian
 
 ==== reproducible Arch Linux
 
-* bugs:
-** double versions, eg community/kodi
-
 * use pacman's error code, see FIXME in _html_.sh
 
 * setup_archlinux_schroot job:


=====================================
bin/reproducible_html_archlinux.sh
=====================================
@@ -156,7 +156,11 @@ create_pkg_state_and_html() {
 		local STATE=GOOD
 		local SOME_GOOD=false
 		for ARTIFACT in $(cd $ARCHLINUX_PKG_PATH/ ; ls *.pkg.tar.xz.html) ; do
-			if [ ! -z "$(grep 'build reproducible in our test framework' $ARCHLINUX_PKG_PATH/$ARTIFACT)" ] ; then
+			if [ -z "$(echo $ARTIFACT | grep $VERSION)" ] ; then
+				echo "deleting $ARTIFACT as version is not $VERSION"
+				rm -f $ARTIFACT
+				continue
+			elif [ ! -z "$(grep 'build reproducible in our test framework' $ARCHLINUX_PKG_PATH/$ARTIFACT)" ] ; then
 				SOME_GOOD=true
 				echo "       <img src=\"/userContent/static/weather-clear.png\" alt=\"reproducible icon\" /> <a href=\"/archlinux/$REPOSITORY/$PKG/$ARTIFACT\">${ARTIFACT:0:-5}</a> is reproducible in our current test framework<br />" >> $HTML_BUFFER
 			else



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/f350de871468549b507916078ce1020182339343

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/f350de871468549b507916078ce1020182339343
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180918/8d6857c5/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list