[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: maintenance: fix the cut(1) call in the removed packages part

Holger Levsen holger at moszumanska.debian.org
Fri Apr 17 23:02:06 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 32522d0e8803ac986354d6e3fbe0e66ad50dc2f5
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sat Apr 18 01:00:30 2015 +0200

    reproducible: maintenance: fix the cut(1) call in the removed packages part
---
 bin/reproducible_maintenance.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index a436265..4e1014b 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -196,9 +196,9 @@ if [ ! -z "$PACKAGES" ] ; then
 	echo $PACKAGES
 	echo
 	for pkg in "$PACKAGES" ; do
-		PKGNAME=$(echo "$pkg" | cut -f '|' -d 1)
-		SUITE=$(echo "$pkg" | cut -f '|' -d 2)
-		ARCH=$(echo "$pkg" | cut -f '|' -d 3)
+		PKGNAME=$(echo "$pkg" | cut -d '|' -f 1)
+		SUITE=$(echo "$pkg" | cut -d '|' -f 2)
+		ARCH=$(echo "$pkg" | cut -d '|' -f 3)
 		QUERY="DELETE FROM removed_packages
 			WHERE name='$PKGNAME' AND suite='$SUITE' AND architecture='$ARCH'"
 		sqlite3 -init $INIT ${PACKAGES_DB} "$QUERY"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list