From e2efd6d4bbe5024f828a1968e2e4aeef70022b21 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 23 Feb 2015 17:40:07 +0100 Subject: reproducible: repo_statspolishing --- bin/reproducible_html_repo_stats.sh | 23 ++++++++++++++--------- logparse/reproducible.rules | 2 +- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/bin/reproducible_html_repo_stats.sh b/bin/reproducible_html_repo_stats.sh index 3506ad1f..baa77c16 100755 --- a/bin/reproducible_html_repo_stats.sh +++ b/bin/reproducible_html_repo_stats.sh @@ -24,14 +24,14 @@ sudo pbuilder --execute --basetgz /var/cache/pbuilder/base-reproducible.tgz $TMP grep -v ^I:\ $TMPFILE > $TMPSCRIPT mv $TMPSCRIPT $TMPFILE -write_page "

The source packages are different from sid in our toolchain. They are available in an apt repository on alioth which is accessable with these sources.lists entries:" +write_page "

The source packages are different from sid in our toolchain. They are available in an apt repository on alioth which is accessable with these sources.lists entries:

"
 write_page "deb http://reproducible.alioth.debian.org/debian/ ./"
 write_page "deb-src http://reproducible.alioth.debian.org/debian/ ./"
 write_page "

" -write_page "

" +write_page "

source packageversion(s)
" SOURCES=$(grep-dctrl -n -s source -FArchitecture amd64 -o -FArchitecture all $TMPFILE | sort -u) for PKG in $SOURCES ; do - write_page "td>$PKG" done write_page "
source packageversion(s)
" + write_page "
$PKG" VERSIONS=$(grep-dctrl -n -s version -S $PKG $TMPFILE|sort -u) BET="" for VERSION in ${VERSIONS} ; do @@ -42,16 +42,21 @@ for PKG in $SOURCES ; do BET=${VERSION} fi done - write_page "$BET
" - WARNED=false + write_page "$BET" + CRUFT="" + WARN=false for VERSION in ${VERSIONS} ; do if [ "${VERSION}" != "$BET" ] ; then - write_page "${VERSION}
" - elif ! $WARNED ; then - echo "Warning: more than one version of $PKG available in our repo, please clean up." - WARNED=true + if [ ! -z "$CRUFT" ] ; then + WARN=true + fi + $CRUFT="$CRUFT ${VERSION}" fi done + if $WARN ; then + echo "Warning: more than one version of $PKG available in our repo, please clean up." + write_page "
cruft: $CRUFT" + fi write_page "

" diff --git a/logparse/reproducible.rules b/logparse/reproducible.rules index ec70a893..e4cf581e 100644 --- a/logparse/reproducible.rules +++ b/logparse/reproducible.rules @@ -10,4 +10,4 @@ warning /Warning: processes found which should not be there/ warning /Warning: packages found where the build was started more than 24h ago:/ warning /Warning: .+ could not be fully removed./ warning /Warning: could not download.+/ - +warning /Warning: more than one version of .+ available in our repo, please clean up./ -- cgit v1.2.3-54-g00ecf