taucmdr.cli.commands.system.fetch module

system fetch subcommand.

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

Bases: AbstractCommand

Downloads every source archive TAU Commander can use, for copying to a system without internet access.

_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.fetch._readable(path)[source]
taucmdr.cli.commands.system.fetch.fetch_sources(dest, sources)[source]

Download source archives into a directory, trying each archive’s mirrors in order.

A download that isn’t a readable archive, such as a server’s error page, counts as a failed mirror. The TAU nightly archive changes every day, so it’s downloaded again and stored with today’s date (see complete_nightly_names).

Parameters:
  • dest (str) – Directory to download into. It’s created if it doesn’t exist.

  • sources (dict) – Archive file names mapped to lists of URLs, as from all_sources.

Returns:

Names of the archives that couldn’t be downloaded from any mirror and weren’t already in dest.

Return type:

list