summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-30 14:01:02 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-30 14:01:02 +0200
commitf70a3f0b10ed5bf1b3e564a66e42b26d849a3d28 (patch)
tree0d027a4e1ee32058795f06e4c201b5320282c814 /bin/reproducible_build.sh
parentc941f344d9abdec3d51882b4b0dc9c9e7fc3a0b2 (diff)
downloadjenkins.debian.net-f70a3f0b10ed5bf1b3e564a66e42b26d849a3d28.tar.xz
reproducible: count unique source packages only
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh2
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