summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_db_maintenance.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-05-26 21:34:43 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-29 16:24:59 +0200
commitb691349c5e8f74ab921d88a281245aceb42b3806 (patch)
tree3ac699e7ae7ed59c421fbcdcad52d5bd2ca85357 /bin/reproducible_db_maintenance.py
parent0c2a008833b92823e1a7a4c21bf66b431be9ccc4 (diff)
downloadjenkins.debian.net-b691349c5e8f74ab921d88a281245aceb42b3806.tar.xz
reproducible: add another flag to the db, "notify_maintainer" to indicate that any status change on this package should be mailed to the maintainers. Also teach the build script how to handle that, emailing $pkgname@packages.debian.org
Diffstat (limited to 'bin/reproducible_db_maintenance.py')
-rwxr-xr-xbin/reproducible_db_maintenance.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/reproducible_db_maintenance.py b/bin/reproducible_db_maintenance.py
index b3aa9385..b2947384 100755
--- a/bin/reproducible_db_maintenance.py
+++ b/bin/reproducible_db_maintenance.py
@@ -373,6 +373,9 @@ schema_updates = {
date_request INTEGER NOT NULL)''',
'ALTER TABLE schedule ADD COLUMN scheduler TEXT',
'INSERT INTO rb_schema VALUES ("13", "' + now + '")'],
+ 14: [ # column to enable mail notification to maintainers
+ 'ALTER TABLE sources ADD COLUMN notify_maintainer INTEGER NOT NULL DEFAULT 0',
+ 'INSERT INTO rb_schema VALUES ("14", "' + now + '")'],
}