From 595080890b7890abff55bb10e3120a001943fcad Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 2 Aug 2015 17:36:27 +0200 Subject: fixup a5cdcc3b: reproducible: improve binary package display --- bin/reproducible_html_repository_comparison.sh | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh index 55c62f04..e448a713 100755 --- a/bin/reproducible_html_repository_comparison.sh +++ b/bin/reproducible_html_repository_comparison.sh @@ -27,7 +27,7 @@ write_page "

These source packages are different from unstable in our apt repo 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 "

packagegit repoPTS linkusertagged bugold versions in our repo
(needed for reproducing old builds)
version in our repoversion in 'testing'version in 'unstable'version in 'experimental'
" curl http://reproducible.alioth.debian.org/debian/Sources > $SOURCES curl http://reproducible.alioth.debian.org/debian/Packages > $PACKAGES @@ -105,16 +105,24 @@ for PKG in $SOURCEPKGS ; do CSID="$CSID$i
" fi done - BINARIES="" + CBINARIES="" if [ ! -z "$BET" ] ; then - for ARCH in $ARCHS ; do - i="$(grep-dctrl -n -s Package -r -FPackage $PKG --and -FVersion $BET --and -FArchitecture all --or -FArchitecture $ARCH $PACKAGES|xargs -r echo)" + ONLYALL=true + for ARCH in all ${ARCHS} ; do + i="$(grep-dctrl -n -s Package -r -FPackage $PKG --and -FVersion $BET --and -FArchitecture $ARCH $PACKAGES|xargs -r echo)" + if [ "$ARCH" != "all" ] && [ ! -z "$i" ] ; then + ONLYALL=false + fi + echo "$ARCH: $i" + done + for ARCH in all ${ARCHS} ; do + i="$(grep-dctrl -n -s Package -r -FPackage $PKG --and -FVersion $BET --and -FArchitecture $ARCH $PACKAGES|xargs -r echo)" if [ ! -z "$i" ] ; then - i="$ARCH+all: $i" - else + i="$ARCH: $i" + elif [ -z "$i" ] && [ "$ARCH" != "all" ] && ! $ONLYALL ; then i="no binaries for $ARCH" fi - BINARIES="$BINARIES
$i" + CBINARIES="$CBINARIES
$i" done BET="$BET" else @@ -187,7 +195,7 @@ for PKG in $SOURCEPKGS ; do done write_page " " write_page " " - write_page " " + write_page " " write_page " " write_page " " write_page " " -- cgit v1.2.3-54-g00ecf
packagegit repoPTS linkusertagged bugold versions in our repo
(needed for reproducing old builds)
version in our repo
(available binary packages per architecture)
version in 'testing'version in 'unstable'version in 'experimental'
bugs$CRUFT$BET $BINARIES$BET $CBINARIES$CTEST$CSID$CEXP