From 1e929f67375b699cdcac0b1557d115eed7035ae8 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Fri, 8 Feb 2008 00:43:26 +0000 Subject: Added option -d to sync, to download the missing files It also added a configuration option download-command, in the [global] section to define which command will be used to download. The default is wget. --- RepSys/commands/sync.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'RepSys/commands') diff --git a/RepSys/commands/sync.py b/RepSys/commands/sync.py index 42ede8d..a51db22 100644 --- a/RepSys/commands/sync.py +++ b/RepSys/commands/sync.py @@ -12,6 +12,8 @@ from the spec file. Options: --dry-run Print results without changing the working copy + --download -d + Try to download the source files not found -h Show this message Examples: @@ -22,6 +24,8 @@ def parse_options(): parser = OptionParser(help=HELP) parser.add_option("--dry-run", dest="dryrun", default=False, action="store_true") + parser.add_option("-d", "--download", dest="download", default=False, + action="store_true") opts, args = parser.parse_args() if len(args): opts.target = args[0] -- cgit v1.2.1