aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/commands/co.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-11-08 17:18:34 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-11-08 17:18:34 +0000
commitcc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e (patch)
treec5ff1a8b7659d3e123e9e28072e6fe0bfbfee7ed /RepSys/commands/co.py
parenta8730b6515005139310f4a54c6d51366a1d6fd5f (diff)
downloadmgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.tar
mgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.tar.gz
mgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.tar.bz2
mgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.tar.xz
mgarepo-cc444f69b7afc33401ff8eaa2f6c8b14a4e9b46e.zip
Added option -o to 'co' to disable the use of mirror when checking out
Diffstat (limited to 'RepSys/commands/co.py')
-rw-r--r--RepSys/commands/co.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/RepSys/commands/co.py b/RepSys/commands/co.py
index 693897a..cadcf56 100644
--- a/RepSys/commands/co.py
+++ b/RepSys/commands/co.py
@@ -10,6 +10,7 @@ Usage: repsys co [OPTIONS] URL [LOCALPATH]
Options:
-r REV Revision to checkout
+ -o Do not use the mirror (use official server)
-h Show this message
Examples:
@@ -20,6 +21,8 @@ Examples:
def parse_options():
parser = OptionParser(help=HELP)
parser.add_option("-r", dest="revision")
+ parser.add_option("-o", dest="use_mirror", default=True,
+ action="store_false")
opts, args = parser.parse_args()
if len(args) not in (1, 2):
raise Error, "invalid arguments"