diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-03-02 20:09:15 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-02 20:09:15 +0100 |
commit | ddb9592e79fbd5b801b901420568f28ab42b2a77 (patch) | |
tree | 7b7ec91049ac308ab24718637cc219b88358871f /bin | |
parent | 752b49dfdf276c3ac0e644a27113e67e7ae43608 (diff) | |
download | jenkins.debian.net-ddb9592e79fbd5b801b901420568f28ab42b2a77.tar.xz |
reproducible: create dd_list per suite
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_dd_list.sh | 57 |
1 files changed, 30 insertions, 27 deletions
diff --git a/bin/reproducible_html_dd_list.sh b/bin/reproducible_html_dd_list.sh index b9aede87..9acfd747 100755 --- a/bin/reproducible_html_dd_list.sh +++ b/bin/reproducible_html_dd_list.sh @@ -15,32 +15,35 @@ set +x init_html VIEW=dd-list -PAGE=index_${VIEW}.html -echo "$(date) - starting to write $PAGE page." -write_page_header $VIEW "Overview of ${SPOKENTARGET[$VIEW]}" -TMPFILE=$(mktemp) -SOURCES=$(mktemp) -schroot --directory /tmp -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 --stdin --sources $SOURCES > $TMPFILE || true -write_page "<p>The following maintainers and uploaders are listed for packages within Sid which have built unreproducibly:</p><p><pre>" -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="" +for $SUITE in $SUITES ; do + PAGE=$SUITE/index_${VIEW}.html + echo "$(date) - starting to write $PAGE page." + write_page_header $VIEW "Overview of ${SPOKENTARGET[$VIEW]}" + TMPFILE=$(mktemp) + SOURCES=$(mktemp) + 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 "<p>The following maintainers and uploaders are listed for packages in $SUITE which have built unreproducibly:</p><p><pre>" + 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 " <a href=\"/rb-pkg/$SUITE/amd64/$PACKAGE.html\">$PACKAGE</a> $UPLOADERS" + else + LINE="$(echo $LINE | sed 's#&#\&#g ; s#<#\<#g ; s#>#\>#g')" + write_page "$LINE" fi - write_page " <a href=\"/rb-pkg/sid/amd64/$PACKAGE.html\">$PACKAGE</a> $UPLOADERS" - else - LINE="$(echo $LINE | sed 's#&#\&#g ; s#<#\<#g ; s#>#\>#g')" - write_page "$LINE" - fi -done < $TMPFILE -write_page "</pre></p>" -rm $TMPFILE -rm $SOURCES -write_page_footer -publish_page + done < $TMPFILE + write_page "</pre></p>" + rm $TMPFILE + rm $SOURCES + write_page_footer + publish_page + echo +done |