]> git.decadent.org.uk Git - dak.git/commitdiff
And use the config.py foo
authorJoerg Jaspert <joerg@debian.org>
Sun, 19 Sep 2010 19:50:58 +0000 (21:50 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 19 Sep 2010 19:50:58 +0000 (21:50 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/generate_releases.py

index 5d7f007ba8e162c93791f32032cd3301e874ffdd..15ad1244163c511632ff283144026318171b95d3 100755 (executable)
@@ -36,6 +36,7 @@ import apt_pkg
 from daklib import utils
 from daklib.dak_exceptions import *
 from daklib.dbconn import *
+from daklib.config import Config
 
 ################################################################################
 
@@ -178,6 +179,7 @@ def main ():
     out = sys.stdout
 
     Cnf = utils.get_conf()
+    cnf = Config()
 
     Arguments = [('h',"help","Generate-Releases::Options::Help"),
                  ('a',"apt-conf","Generate-Releases::Options::Apt-Conf", "HasArg"),
@@ -371,7 +373,7 @@ def main ():
                 keyring += " --keyring \"%s\"" % Cnf["Dinstall::SigningPubKeyring"]
 
             arguments = "--no-options --batch --no-tty --armour"
-            signkeyids=Cnf.signingkeyids.split()
+            signkeyids=cnf.signingkeyids.split()
 
             dest = Cnf["Dir::Root"] + tree + "/Release.gpg"
             if os.path.exists(dest):