]> git.decadent.org.uk Git - dak.git/commitdiff
utils.gpg_keyring_args is only available under daklib.utils...
authorAnthony Towns <aj@azure.humbug.org.au>
Mon, 18 Jun 2007 17:45:49 +0000 (18:45 +0100)
committerAnthony Towns <aj@azure.humbug.org.au>
Mon, 18 Jun 2007 17:45:49 +0000 (18:45 +0100)
dak/import_ldap_fingerprints.py

index 5075f35777677c2f18d63738d0731431267ef548..22ee2ddce18c2930a332cb426ab369e135e639de 100755 (executable)
@@ -158,7 +158,7 @@ SELECT f.fingerprint, f.id, u.uid FROM fingerprint f, uid u WHERE f.uid = u.id
     for i in q.getresult():
         (fingerprint, fingerprint_id) = i
         cmd = "gpg --no-default-keyring %s --fingerprint %s" \
-              % (gpg_keyring_args(), fingerprint)
+              % (daklib.utils.gpg_keyring_args(), fingerprint)
         (result, output) = commands.getstatusoutput(cmd)
         if result == 0:
             m = re_gpg_fingerprint.search(output)
@@ -177,7 +177,7 @@ SELECT f.fingerprint, f.id, u.uid FROM fingerprint f, uid u WHERE f.uid = u.id
             for keyring in Cnf.ValueList("Import-LDAP-Fingerprints::ExtraKeyrings"):
                 extra_keyrings += " --keyring=%s" % (keyring)
             cmd = "gpg %s %s --list-key %s" \
-                  % (gpg_keyring_args(), extra_keyrings, fingerprint)
+                  % (daklib.utils.gpg_keyring_args(), extra_keyrings, fingerprint)
             (result, output) = commands.getstatusoutput(cmd)
             if result != 0:
                 cmd = "gpg --keyserver=%s --allow-non-selfsigned-uid --recv-key %s" % (Cnf["Import-LDAP-Fingerprints::KeyServer"], fingerprint)