Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 647860 Details for
Bug 730994
app-portage/mirrorselect : add support for HTTPS filtering
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mirrorselect-https-filter.patch
mirrorselect-https-filter.patch (text/plain), 2.03 KB, created by
Peter Levine
on 2020-07-06 01:29:03 UTC
(
hide
)
Description:
mirrorselect-https-filter.patch
Filename:
MIME Type:
Creator:
Peter Levine
Created:
2020-07-06 01:29:03 UTC
Size:
2.03 KB
patch
obsolete
>diff --git a/mirrorselect.8 b/mirrorselect.8 >index 8f0f56e..49caadd 100644 >--- a/mirrorselect.8 >+++ b/mirrorselect.8 >@@ -44,6 +44,9 @@ ftp only mode. Will not consider hosts of other types. > .B \-H, \-\-http > http only mode. Will not consider hosts of other types. > .TP >+.B \-S, \-\-https >+https only mode. Will not consider hosts of other types. >+.TP > .B \-r, \-\-rsync > rsync mode. Allows you to interactively select your rsync mirror. > Requires -i to be used. >diff --git a/mirrorselect/extractor.py b/mirrorselect/extractor.py >index dca8302..19dc059 100644 >--- a/mirrorselect/extractor.py >+++ b/mirrorselect/extractor.py >@@ -50,7 +50,7 @@ class Extractor(object): > filters[opt] = value > self.output.print_info('Limiting test to "%s=%s" hosts. \n' > %(opt, value)) >- for opt in ["ftp", "http"]: >+ for opt in ["ftp", "http", "https"]: > if getattr(options, opt): > filters["proto"] = opt > self.output.print_info('Limiting test to %s hosts. \n' % opt ) >diff --git a/mirrorselect/main.py b/mirrorselect/main.py >index c4f649f..c4e5abf 100755 >--- a/mirrorselect/main.py >+++ b/mirrorselect/main.py >@@ -184,6 +184,9 @@ class MirrorSelect(object): > group.add_option( > "-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" >@@ -258,8 +261,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')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 730994
: 647860