]> git.decadent.org.uk Git - dak.git/commitdiff
Make import_keyring use get_or_set_keyring.
authorChris Lamb <lamby@debian.org>
Mon, 26 Oct 2009 14:46:13 +0000 (14:46 +0000)
committerChris Lamb <lamby@debian.org>
Mon, 26 Oct 2009 14:48:21 +0000 (14:48 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
dak/import_keyring.py

index 4c6a2eaa73dcbfad787cdb87e4bbe0d74a19c917..2136709817412649e7b9d92e8540abcbfa6c385e 100755 (executable)
@@ -227,8 +227,9 @@ def main():
 
         is_dm = cnf["Import-Keyring::"+keyringname+"::Debian-Maintainer"]
 
-    keyring_id = database.get_or_set_keyring_id(
-                        keyringname.split("/")[-1])
+    keyring_id = get_or_set_keyring(
+        keyringname.split("/")[-1], session,
+    ).keyring_id
 
     ### Generate new uid entries if they're needed (from LDAP or the keyring)
     (desuid_byname, desuid_byid) = keyring.generate_desired_users()