taucmdr.cli.commands.system.import module

system import subcommand.

class taucmdr.cli.commands.system.import.ImportCommand(module_name, format_fields=None, summary_fmt=None, help_page_fmt=None, group=None)[source]

Bases: AbstractCommand

Copies source archives into system-level storage.

_abc_impl = <_abc._abc_data object>
_construct_parser()[source]

Construct a command line argument parser.

main(argv)[source]

Command program entry point.

Parameters:

argv (list) – Command line arguments.

Returns:

Process return code: non-zero if a problem occurred, 0 otherwise

Return type:

int

taucmdr.cli.commands.system.import._copy_into_place(source, target)[source]
taucmdr.cli.commands.system.import._same_file(path1, path2)[source]
taucmdr.cli.commands.system.import.import_sources(bundle, src_dir)[source]

Copy the source archives in a directory into a storage level’s source archive directory.

Only files with a name expected of a TAU dependency is copied. Files already in src_dir under the same name are not replaced. TAU nightly archives are named with the archive’s date, and tau-nightly.tgz is linked to the newest (see complete_nightly_names).

Parameters:
  • bundle (str) – Directory holding the archives; made by tau system fetch.

  • src_dir (str) – The storage level’s source archive directory. It is created if it doesn’t already exist.

Returns:

Names of the files added to src_dir.

Return type:

list

Raises:

ConfigurationError – bundle isn’t a directory or an archive can’t be read.