diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2013-10-16 01:35:46 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2013-10-16 01:35:46 -0700 |
commit | b14ff1ed1877ccd244d76ead7fd9b66fd8c6f9f1 (patch) | |
tree | 49b9c566f9cb7d18794ced504b714d042d34f97b /mirrorselect | |
parent | tweak message formatting (diff) | |
download | mirrorselect-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-x | mirrorselect/main.py | 8 |
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 |