dak.init_dirs

Initial setup of an archive.

Functions

create_directories()

Create directories referenced in dak.conf.

do_dir(target, config_name)

If 'target' exists, make sure it is a directory.

main()

Initial setup of an archive.

process_file(config, config_name)

Create directories for a config entry that's a filename.

process_keyring(fullpath[, secret])

Create empty keyring if necessary.

process_morguesubdir(subdir)

Create directories for morgue sub directories.

process_tree(config, tree)

Create directories for a config tree.

usage([exit_code])

Print a usage message and exit with 'exit_code'.

dak.init_dirs.create_directories()[source]

Create directories referenced in dak.conf.

dak.init_dirs.do_dir(target, config_name)[source]

If ‘target’ exists, make sure it is a directory. If it doesn’t, create it.

dak.init_dirs.main()[source]

Initial setup of an archive.

dak.init_dirs.process_file(config, config_name)[source]

Create directories for a config entry that’s a filename.

dak.init_dirs.process_keyring(fullpath, secret=False)[source]

Create empty keyring if necessary.

dak.init_dirs.process_morguesubdir(subdir)[source]

Create directories for morgue sub directories.

dak.init_dirs.process_tree(config, tree)[source]

Create directories for a config tree.

dak.init_dirs.usage(exit_code=0)[source]

Print a usage message and exit with ‘exit_code’.