diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-09-30 14:01:02 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-09-30 14:01:02 +0200 |
commit | f70a3f0b10ed5bf1b3e564a66e42b26d849a3d28 (patch) | |
tree | 0d027a4e1ee32058795f06e4c201b5320282c814 /bin | |
parent | c941f344d9abdec3d51882b4b0dc9c9e7fc3a0b2 (diff) | |
download | jenkins.debian.net-f70a3f0b10ed5bf1b3e564a66e42b26d849a3d28.tar.xz |
reproducible: count unique source packages only
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index acfec3b6..21bb74c9 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -101,7 +101,7 @@ if [[ $1 =~ ^-?[0-9]+$ ]] ; then done fi # update amount of available packages (for doing statistics later) - P_IN_SOURCES=$(xzcat $TMPFILE | grep "^Package" | grep -v "^Package-List:" | cut -d " " -f2 | wc -l) + P_IN_SOURCES=$(xzcat $TMPFILE | grep "^Package" | grep -v "^Package-List:" | cut -d " " -f2 | sort -u | wc -l) sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO source_stats VALUES (\"sid\", \"${P_IN_SOURCES}\")" rm $TMPFILE else |