From 7d212d83ff63fc7155f604429d5727df669add90 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 12 Mar 2015 18:35:55 +0100 Subject: reproducible: comment on repo usage --- bin/reproducible_html_repo_stats.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_html_repo_stats.sh b/bin/reproducible_html_repo_stats.sh index ca1a5215..b501e8f0 100755 --- a/bin/reproducible_html_repo_stats.sh +++ b/bin/reproducible_html_repo_stats.sh @@ -37,8 +37,8 @@ for PKG in $SOURCES ; do fi VERSIONS=$(grep-dctrl -n -s version -S $PKG $TMPFILE|sort -u) CRUFT="" - WARN=false BET="" + OBSOLETE=false # # gather versions of a package # @@ -53,7 +53,6 @@ for PKG in $SOURCES ; do SID=$(rmadison -s sid $PKG | cut -d "|" -f2|xargs echo) for VERSION in ${VERSIONS} ; do if [ "${VERSION}" != "$BET" ] ; then - WARN=true CRUFT="$CRUFT ${VERSION}" fi done @@ -71,6 +70,7 @@ for PKG in $SOURCES ; do if [ ! -z "$BET" ] ; then CRUFT="$BET $CRUFT" BET="" + OBSOLETE=true fi else CSID="$CSID$i
" @@ -112,8 +112,14 @@ for PKG in $SOURCES ; do write_page "$PKG
(no git repository)" elif [ "$(grep "'error'>Invalid branch" $TMP2FILE 2>/dev/null)" ] ; then write_page "$PKG
(non-standard branch)" + if $OBSOLETE ; then + write_page " (probably ok)" + fi else write_page "$PKG" + if $OBSOLETE ; then + write_page "
(unused?)" + fi fi write_page " " write_page " $CRUFT" -- cgit v1.2.3-70-g09d2