From e1a355b23ea0cad72ea1935f955376fe5230145a Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 8 Jul 2015 22:51:07 +0000 Subject: reproducible: rewrite reproducible_html_dd_list into python. This allow us to get the "informative package links" on that page too --- bin/reproducible_html_dd_list.sh | 49 ---------------------------------------- 1 file changed, 49 deletions(-) delete mode 100755 bin/reproducible_html_dd_list.sh (limited to 'bin/reproducible_html_dd_list.sh') diff --git a/bin/reproducible_html_dd_list.sh b/bin/reproducible_html_dd_list.sh deleted file mode 100755 index 4d819d9b..00000000 --- a/bin/reproducible_html_dd_list.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -# Copyright 2014 Holger Levsen -# © 2015 Mattia Rizzolo -# released under the GPLv=2 - -DEBUG=false -. /srv/jenkins/bin/common-functions.sh -common_init "$@" - -# common code defining db access -. /srv/jenkins/bin/reproducible_common.sh - -SUITE="unstable" -ARCH="amd64" - -VIEW=dd-list -for SUITE in $SUITES ; do - PAGE=index_${VIEW}.html - echo "$(date) - starting to write $PAGE page." - write_page_header $VIEW "Maintainers of unreproducible packages in $SUITE" - TMPFILE=$(mktemp --tmpdir=$TEMPDIR dd-list-XXXXXXXX) - SOURCES=$(mktemp --tmpdir=$TEMPDIR dd-list-XXXXXXXX) - schroot --directory /tmp -c source:jenkins-reproducible-$SUITE cat /var/lib/apt/lists/*_source_Sources > $SOURCES || \ - wget ${MIRROR}/dists/$SUITE/main/source/Sources.xz -O - | xzcat > $SOURCES - BAD=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT s.name FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE r.status='unreproducible' AND s.suite='$SUITE' ORDER BY r.build_date DESC" | xargs echo) - echo "${BAD}" | dd-list --stdin --sources $SOURCES > $TMPFILE || true - write_page "

The following maintainers and uploaders are listed for packages in $SUITE which have built unreproducibly:

"
-	while IFS= read -r LINE ; do
-		if [ "${LINE:0:3}" = "   " ] ; then
-			PACKAGE=$(echo "${LINE:3}" | cut -d " " -f1)
-			UPLOADERS=$(echo "${LINE:3}" | cut -d " " -f2-)
-			if [ "$UPLOADERS" = "$PACKAGE" ] ; then
-				UPLOADERS=""
-			fi
-			write_page "   $PACKAGE $UPLOADERS"
-		else
-			LINE="$(echo $LINE | sed 's#&#\&#g ; s#<#\<#g ; s#>#\>#g')"
-			write_page "$LINE"
-		fi
-	done < $TMPFILE
-	write_page "

" - rm $TMPFILE - rm $SOURCES - write_page_footer - publish_page $SUITE - echo -done - -- cgit v1.2.3-54-g00ecf