diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-09-28 16:40:47 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-09-28 16:40:47 +0200 |
commit | 56fbba25c2170c8b4d2b297456f926391e866271 (patch) | |
tree | 6440baf2dd860bdcbbdf39c9d1a9a9b88d00382a | |
parent | d6fed3c800d8d6b3a4ca7b815b5c0c628a00a53c (diff) | |
download | jenkins.debian.net-56fbba25c2170c8b4d2b297456f926391e866271.tar.xz |
reproducible: calculate number of source packages correctly
-rwxr-xr-x | bin/reproducible_build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 11aa09be..92f403a5 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -48,8 +48,8 @@ if [[ $1 =~ ^-?[0-9]+$ ]] ; then TMPFILE=$(mktemp) curl http://ftp.de.debian.org/debian/dists/sid/main/source/Sources.xz > $TMPFILE AMOUNT=$1 - PACKAGES=$(xzcat $TMPFILE | grep "^Package" | cut -d " " -f2 | egrep -v "linux$"| sort -R | head -$AMOUNT | xargs echo) - P_IN_SOURCES=$(xzcat $TMPFILE | grep "^Package" | cut -d " " -f2 | wc -l) + PACKAGES=$(xzcat $TMPFILE | grep "^Package" | grep -v "^Package-List:" | cut -d " " -f2 | egrep -v "linux$"| sort -R | head -$AMOUNT | xargs echo) + P_IN_SOURCES=$(xzcat $TMPFILE | grep "^Package" | grep -v "^Package-List:" | cut -d " " -f2 | wc -l) sqlite3 -init $INIT $PACKAGES_DB "REPLACE INTO source_stats VALUES (\"sid\", \"${P_IN_SOURCES}\")" rm $TMPFILE else |