From d4edf29476ce567b91e2328734c1776902333114 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 30 Sep 2014 01:19:58 +0200 Subject: reproducible: two small fixes --- bin/reproducible_build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2