aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/commands/co.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-11-08 17:21:09 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-11-08 17:21:09 +0000
commitc8428377393fab3b0549229cdcc349f34500bc15 (patch)
treee0a4d759dcba618e70ce3756972e92fb76befb2b /RepSys/commands/co.py
parent5fde037cacbb4a6608c6edd58a1d331452d56f0c (diff)
downloadmgarepo-c8428377393fab3b0549229cdcc349f34500bc15.tar
mgarepo-c8428377393fab3b0549229cdcc349f34500bc15.tar.gz
mgarepo-c8428377393fab3b0549229cdcc349f34500bc15.tar.bz2
mgarepo-c8428377393fab3b0549229cdcc349f34500bc15.tar.xz
mgarepo-c8428377393fab3b0549229cdcc349f34500bc15.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"