summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-18 01:00:30 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-18 01:01:57 +0200
commit32522d0e8803ac986354d6e3fbe0e66ad50dc2f5 (patch)
treeff3b2c0630f283eacfa3c1e9371c70828bf1829b /bin
parent57693f2fe77d6c17d0cfd8fa6952c6f6092d1dbe (diff)
downloadjenkins.debian.net-32522d0e8803ac986354d6e3fbe0e66ad50dc2f5.tar.xz
reproducible: maintenance: fix the cut(1) call in the removed packages part
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_maintenance.sh6
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"