diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-18 01:00:30 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-04-18 01:01:57 +0200 |
commit | 32522d0e8803ac986354d6e3fbe0e66ad50dc2f5 (patch) | |
tree | ff3b2c0630f283eacfa3c1e9371c70828bf1829b | |
parent | 57693f2fe77d6c17d0cfd8fa6952c6f6092d1dbe (diff) | |
download | jenkins.debian.net-32522d0e8803ac986354d6e3fbe0e66ad50dc2f5.tar.xz |
reproducible: maintenance: fix the cut(1) call in the removed packages part
-rwxr-xr-x | bin/reproducible_maintenance.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index a4362650..4e1014ba 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" |