aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/commands
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2008-02-08 00:43:26 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2008-02-08 00:43:26 +0000
commit1e929f67375b699cdcac0b1557d115eed7035ae8 (patch)
tree63dd50265afd2b2385badb46476ff607ca5e10f4 /RepSys/commands
parent5eb9f215eca3378738cddce68ce0977c6069357c (diff)
downloadmgarepo-1e929f67375b699cdcac0b1557d115eed7035ae8.tar
mgarepo-1e929f67375b699cdcac0b1557d115eed7035ae8.tar.gz
mgarepo-1e929f67375b699cdcac0b1557d115eed7035ae8.tar.bz2
mgarepo-1e929f67375b699cdcac0b1557d115eed7035ae8.tar.xz
mgarepo-1e929f67375b699cdcac0b1557d115eed7035ae8.zip
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.
Diffstat (limited to 'RepSys/commands')
-rw-r--r--RepSys/commands/sync.py4
1 files changed, 4 insertions, 0 deletions
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]