From 0da83c6c07c369ad59dcf03a9ff7321b93190c9e Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Thu, 29 Oct 2009 14:18:24 +0000 Subject: [PATCH] allow for keyring priorities Signed-off-by: Mark Hymers --- dak/dakdb/update16.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dak/dakdb/update16.py b/dak/dakdb/update16.py index e5b86994..36dd964e 100755 --- a/dak/dakdb/update16.py +++ b/dak/dakdb/update16.py @@ -131,6 +131,8 @@ def do_update(self): c.execute("ALTER TABLE keyrings ADD COLUMN default_source_acl_id INT4 REFERENCES source_acl (id) DEFAULT NULL") c.execute("ALTER TABLE keyrings ADD COLUMN default_binary_acl_id INT4 REFERENCES binary_acl (id) DEFAULT NULL") c.execute("ALTER TABLE keyrings ADD COLUMN default_binary_reject BOOLEAN NOT NULL DEFAULT TRUE") + # Set up keyring priorities + c.execute("ALTER TABLE keyrings ADD COLUMN priority INT4 NOT NULL DEFAULT 100") # Default ACLs for keyrings c.execute(""" @@ -156,6 +158,7 @@ def do_update(self): default_binary_acl_id = (SELECT id FROM binary_acl WHERE access_level = 'full') WHERE name = 'debian-maintainers.gpg'""") + c.execute("""UPDATE keyrings SET priority = 90 WHERE name = 'debian-maintainers.gpg'""") # Initialize the existing keys c.execute("""UPDATE fingerprint SET binary_acl_id = (SELECT default_binary_acl_id FROM keyrings -- 2.39.5