summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)