[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible Arch Linux: count (only source) packages correctly

Holger Levsen holger at layer-acht.org
Thu Nov 23 14:11: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 ab8222d682dc54ad522d7812200b7fa4782e0971
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Nov 23 14:10:33 2017 +0000

    reproducible Arch Linux: count (only source) packages correctly
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_html_archlinux.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index c149865..6758c0d 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -130,14 +130,18 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do
 			HTML_TARGET=$HTML_GOOD
 			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
-					let NR_GOOD+=1
 					echo "       <img src=\"/userContent/static/weather-clear.png\" alt=\"reproducible icon\" /> <a href=\"/archlinux/$REPOSITORY/$PKG/$ARTIFACT\">${ARTIFACT:0:-5}</a> is reproducible<br />" >> $HTML_BUFFER
 				else
 					HTML_TARGET=$HTML_FTBR
-					let NR_FTBR+=1
 					echo "       <img src=\"/userContent/static/weather-showers-scattered.png\" alt=\"unreproducible icon\" /> <a href=\"/archlinux/$REPOSITORY/$PKG/$ARTIFACT\">${ARTIFACT:0:-5}</a> is unreproducible<br />" >> $HTML_BUFFER
 				fi
 			done
+			# we only count source packages for now…
+			if [ "$HTML_TARGET" = "$HTML_FTBR" ] ; then
+				let NR_FTBR+=1
+			else
+				let NR_GOOD+=1
+			fi
 		fi
 		echo "      </td>" >> $HTML_BUFFER
 		echo "      <td>$(LANG=C TZ=UTC ls --full-time $ARCHLINUX_PKG_PATH/build1.log | cut -d ':' -f1-2 | cut -d " " -f6- ) UTC</td>" >> $HTML_BUFFER

-- 
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