aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2013-10-16 01:35:46 -0700
committerBrian Dolbec <dolsen@gentoo.org>2013-10-16 01:35:46 -0700
commitb14ff1ed1877ccd244d76ead7fd9b66fd8c6f9f1 (patch)
tree49b9c566f9cb7d18794ced504b714d042d34f97b /mirrorselect
parenttweak message formatting (diff)
downloadmirrorselect-b14ff1ed1877ccd244d76ead7fd9b66fd8c6f9f1.tar.gz
mirrorselect-b14ff1ed1877ccd244d76ead7fd9b66fd8c6f9f1.tar.bz2
mirrorselect-b14ff1ed1877ccd244d76ead7fd9b66fd8c6f9f1.zip
Force -o for -a + -r options to prevent multiple results being saved to the config.
Diffstat (limited to 'mirrorselect')
-rwxr-xr-xmirrorselect/main.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/mirrorselect/main.py b/mirrorselect/main.py
index 6a9c43d..5f7dc64 100755
--- a/mirrorselect/main.py
+++ b/mirrorselect/main.py
@@ -243,7 +243,7 @@ class MirrorSelect(object):
group = parser.add_option_group("Main modes")
group.add_option(
"-a", "--all_mirrors", action="store_true", default=False,
- help="This will present a list of all results"
+ help="This will present a list of all filtered search results "
"to make it possible to select mirrors you wish to use.")
group.add_option(
"-i", "--interactive", action="store_true", default=False,
@@ -335,6 +335,12 @@ class MirrorSelect(object):
if options.rsync and not (options.interactive or options.all_mirrors):
self.output.print_err('rsync servers can only be selected with -i or -a')
+ elif options.rsync and options.all_mirrors and not options.output:
+ # force output to screen.
+ # multiple uri's break normal sync operation
+ options.output = True
+ self.output.print_info("Forcing output to screen, as "
+ "multiple rsync uris are not supported\n")
if options.interactive and (
options.deep or