summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-11-18 01:58:54 +0100
committerHolger Levsen <holger@layer-acht.org>2014-11-18 01:58:54 +0100
commit1886681112280e17cea4fa0a03c55f0a7e7bfa66 (patch)
tree0e0a2d3be6e9c20796815d927da4f65d09f27aa9 /bin
parentd12f56371e2cb69ac1e775e3b4cdd76f5876515d (diff)
downloadjenkins.debian.net-1886681112280e17cea4fa0a03c55f0a7e7bfa66.tar.xz
reproducible: fix typo
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_maintainance.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh
index 083d269e..950a8d4a 100755
--- a/bin/reproducible_maintainance.sh
+++ b/bin/reproducible_maintainance.sh
@@ -107,10 +107,11 @@ QUERY="SELECT source_packages.name FROM source_packages
(SELECT sources.name FROM sources)
LIMIT 25"
PACKAGES=$(sqlite3 -init $INIT ${PACKAGES_DB} "$QUERY")
-if [ -z "$PACKAGES" ] ; then
+if [ ! -z "$PACKAGES" ] ; then
echo
echo "Removing these removed packages from database:"
echo $PACKAGES
+ echo
QUERY="DELETE FROM source_packages
WHERE source_packages.name NOT IN
(SELECT sources.name FROM sources)