summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-30 01:19:58 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-30 01:19:58 +0200
commitd4edf29476ce567b91e2328734c1776902333114 (patch)
treed709d6de19b0960aeb5ea504f8c2bf5613d67500 /bin
parent7fb3bf4cbca9634539b34726f8510d06f1c748a7 (diff)
downloadjenkins.debian.net-d4edf29476ce567b91e2328734c1776902333114.tar.xz
reproducible: two small fixes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index b1d8f421..d9f7b75b 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -97,7 +97,6 @@ if [[ $1 =~ ^-?[0-9]+$ ]] ; then
for PKG in $PACKAGES ; do
let "AMOUNT=AMOUNT+1"
done
- rm $CSVFILE
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)
@@ -106,7 +105,7 @@ if [[ $1 =~ ^-?[0-9]+$ ]] ; then
else
PACKAGES="$@"
AMOUNT="${#@}"
- JOB=$(echo $JOB_NAME|cut -d "_" -f3)
+ JOB=$(echo $JOB_NAME|cut -d "_" -f3-)
for PKG in $PACKAGES ; do
RESULT=$(sqlite3 ${PACKAGES_DB} "SELECT name FROM job_sources WHERE ( name = '${PKG}' AND job = '$JOB' )")
if [ "$RESULT" = "" ] ; then