diff options
author | 2022-05-30 16:01:21 -0700 | |
---|---|---|
committer | 2022-05-30 16:11:33 -0700 | |
commit | eb9a6203b721d7247f79cb8c991ef835f1b9e1f7 (patch) | |
tree | 4ac7c8e386dfaae586929880b84ea3a5f51d7b5a /mirrorselect/main.py | |
parent | Remove obsolete __future__ import of print_function (diff) | |
download | mirrorselect-eb9a6203b721d7247f79cb8c991ef835f1b9e1f7.tar.gz mirrorselect-eb9a6203b721d7247f79cb8c991ef835f1b9e1f7.tar.bz2 mirrorselect-eb9a6203b721d7247f79cb8c991ef835f1b9e1f7.zip |
Apply bug 730994 https filtering patch
Author: Peter Levine
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
Diffstat (limited to 'mirrorselect/main.py')
-rwxr-xr-x | mirrorselect/main.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mirrorselect/main.py b/mirrorselect/main.py index c3b5633..b0a68cc 100755 --- a/mirrorselect/main.py +++ b/mirrorselect/main.py @@ -182,6 +182,9 @@ class MirrorSelect(object): "-H", "--http", action="store_true", default=False, help="http only mode. Will not consider hosts of other types") group.add_option( + "-S", "--https", action="store_true", default=False, + help="https only mode. Will not consider hosts of other types") + group.add_option( "-r", "--rsync", action="store_true", default=False, help="rsync mode. Allows you to interactively select your" " rsync mirror. Requires -i or -a to be used.") @@ -255,8 +258,8 @@ class MirrorSelect(object): # sanity checks # hack: check if more than one of these is set - if options.http + options.ftp + options.rsync > 1: - self.output.print_err('Choose at most one of -H, -f and -r') + if options.http + options.https + options.ftp + options.rsync > 1: + self.output.print_err('Choose at most one of -H, -S, -f and -r') if options.ipv4 and options.ipv6: self.output.print_err('Choose at most one of --ipv4 and --ipv6') |