X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Finit_dirs.py;h=f9d3e80586eb6e2003cf7eb9710e46f39c26d1ed;hb=a41f36505ff2297d3455c8b6ca846d0f2ffce5de;hp=0d9eff29bea15776e6406091a967e2523656fb28;hpb=0428b537276f1c257c624183745e688e43fa6b06;p=dak.git diff --git a/dak/init_dirs.py b/dak/init_dirs.py old mode 100755 new mode 100644 index 0d9eff29..f9d3e805 --- a/dak/init_dirs.py +++ b/dak/init_dirs.py @@ -55,14 +55,14 @@ it.""" def process_file(config, config_name): """Create directories for a config entry that's a filename.""" - + if config.has_key(config_name): target = os.path.dirname(config[config_name]) do_dir(target, config_name) def process_tree(config, tree): """Create directories for a config tree.""" - + for entry in config.SubTree(tree).List(): entry = entry.lower() if tree == "Dir": @@ -74,7 +74,7 @@ def process_tree(config, tree): def process_morguesubdir(subdir): """Create directories for morgue sub directories.""" - + config_name = "%s::MorgueSubDir" % (subdir) if Cnf.has_key(config_name): target = os.path.join(Cnf["Dir::Morgue"], Cnf[config_name]) @@ -142,4 +142,3 @@ def main (): if __name__ == '__main__': main() -