From 4ab5370f569bf46269115bb51c3c7fc913d10523 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 1 Mar 2015 17:16:06 +0100 Subject: reproducible: html_dd-list: use either sources list from schroot, or download it from the net --- bin/reproducible_html_dd_list.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_html_dd_list.sh b/bin/reproducible_html_dd_list.sh index a5653635..7dd50c61 100755 --- a/bin/reproducible_html_dd_list.sh +++ b/bin/reproducible_html_dd_list.sh @@ -19,8 +19,11 @@ PAGE=index_${VIEW}.html echo "$(date) - starting to write $PAGE page." write_page_header $VIEW "Overview of ${SPOKENTARGET[$VIEW]}" TMPFILE=$(mktemp) +SOURCES=$(mktemp) +schroot -c source:jenkins-reproducible-sid cat /var/lib/apt/lists/*_source_Sources > $SOURCES || \ + wget ${MIRROR}/dists/sid/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="sid" ORDER BY r.build_date DESC' | xargs echo) -echo "${BAD}" | dd-list -i > $TMPFILE || true +echo "${BAD}" | dd-list --stdin --sources $SOURCES > $TMPFILE || true write_page "

The following maintainers and uploaders are listed for packages within Sid which have built unreproducibly:

"
 while IFS= read -r LINE ; do
 	if [ "${LINE:0:3}" = "   " ] ; then
@@ -37,6 +40,7 @@ while IFS= read -r LINE ; do
 done < $TMPFILE
 write_page "

" rm $TMPFILE +rm $SOURCES write_page_footer publish_page -- cgit v1.2.3-70-g09d2