summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_db_maintenance.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2017-06-18 23:13:42 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-18 23:14:51 +0200
commitdd252fb7adc38adad977b5aefa712ed765aea79d (patch)
tree4fb5d34570d73579b0d86fec9b68717f1109ebd9 /bin/reproducible_db_maintenance.py
parentd0e55edd4c727d32f235668e34a7b1f0a2e5a5d4 (diff)
downloadjenkins.debian.net-dd252fb7adc38adad977b5aefa712ed765aea79d.tar.xz
reproducible debian: db: fix syntax errors…
Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_db_maintenance.py')
-rwxr-xr-xbin/reproducible_db_maintenance.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_db_maintenance.py b/bin/reproducible_db_maintenance.py
index 27f3f56c..61b9374c 100755
--- a/bin/reproducible_db_maintenance.py
+++ b/bin/reproducible_db_maintenance.py
@@ -610,7 +610,7 @@ schema_updates = {
"""INSERT INTO sources (name, version, suite, architecture, notify_maintainer)
SELECT name, version, 'buster', architecture, notify_maintainer
FROM sources
- WHERE suite = 'stretch'"""
+ WHERE suite = 'stretch'""",
"""WITH buster AS (
SELECT id, name, suite, architecture, version
FROM sources WHERE suite = 'buster'),
@@ -626,6 +626,7 @@ schema_updates = {
FROM buster AS b JOIN sr ON b.name=sr.name
AND b.architecture=sr.architecture""",
"INSERT INTO rb_schema (version, date) VALUES (32, '" + now + "')"
+ ],
}