X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Finit_dirs.py;h=32c8f589b4e8e24c37741ce3716f2fe0badd5685;hb=53fc7eab5ce89173e70a2889ed161e1cafc70c28;hp=fc5efd3206948cdca6ece9c2b03b7fe394633429;hpb=1c2f5f4048b36efb345a3aa96b20d60dc7af1990;p=dak.git diff --git a/dak/init_dirs.py b/dak/init_dirs.py index fc5efd32..32c8f589 100755 --- a/dak/init_dirs.py +++ b/dak/init_dirs.py @@ -63,7 +63,7 @@ def process_file(config, config_name): def process_tree(config, tree): """Create directories for a config tree.""" - for entry in config.SubTree(tree).List(): + for entry in config.subtree(tree).list(): entry = entry.lower() config_name = "%s::%s" % (tree, entry) target = config[config_name] @@ -121,7 +121,7 @@ def create_directories(): for subdir in [ "Clean-Queues", "Clean-Suites" ]: process_morguesubdir(subdir) - suite_suffix = "%s" % (Cnf.Find("Dinstall::SuiteSuffix")) + suite_suffix = "%s" % (Cnf.find("Dinstall::SuiteSuffix")) # Process secret keyrings if Cnf.has_key('Dinstall::SigningKeyring'): @@ -134,13 +134,6 @@ def create_directories(): for keyring in session.query(Keyring).all(): process_keyring(keyring.keyring_name) - # Process pool directories - for component in session.query(Component): - directory = os.path.join( Cnf['Dir::Pool'], component.component_name ) - - do_dir(directory, '%s pool' % component.component_name) - - # Process dists directories # TODO: Store location of each suite in database for suite in session.query(Suite): @@ -179,9 +172,9 @@ def main (): d = DBConn() - arguments = apt_pkg.ParseCommandLine(Cnf, arguments, sys.argv) + arguments = apt_pkg.parse_commandline(Cnf, arguments, sys.argv) - options = Cnf.SubTree("Init-Dirs::Options") + options = Cnf.subtree("Init-Dirs::Options") if options["Help"]: usage() elif arguments: