Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 577888 Details for
Bug 582508
app-portage/mirrorselect: `mirrorselect -s10 -b10 -6 -o > /etc/portage/mirrors6' returns IPv4 mirrors
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
netselect: use -4/-6 options
netselect-use-4-6-options-bug-582508.patch (text/plain), 1.41 KB, created by
Zac Medico
on 2019-05-27 17:08:57 UTC
(
hide
)
Description:
netselect: use -4/-6 options
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2019-05-27 17:08:57 UTC
Size:
1.41 KB
patch
obsolete
>From 195781b8fbfe3ee52ceb478de5058e2745d24aa2 Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Mon, 27 May 2019 10:02:02 -0700 >Subject: [PATCH] netselect: use -4/-6 options (bug 582508) > >Requires >=net-analyzer/netselect-0.4[ipv6(+)]. > >Bug: https://bugs.gentoo.org/582508 >Signed-off-by: Zac Medico <zmedico@gentoo.org> >--- > mirrorselect/selectors.py | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > >diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py >index 4b7e7a2..e3f718c 100644 >--- a/mirrorselect/selectors.py >+++ b/mirrorselect/selectors.py >@@ -65,6 +65,7 @@ class Shallow(object): > """handles rapid server selection via netselect""" > > def __init__(self, hosts, options, output): >+ self._options = options > self.output = output > self.urls = [] > >@@ -94,10 +95,18 @@ class Shallow(object): > > host_string = ' '.join(hosts) > >- self.output.write('\nnetselect(): running "netselect -s%d %s"\n' >- % (int(number), host_string), 2) >+ cmd = ['netselect', '-s%d' % (number,)] >+ if self._options.ipv4: >+ cmd.append('-4') >+ elif self._options.ipv6: >+ cmd.append('-6') > >- proc = subprocess.Popen( ['netselect', '-s%d' % (number,)] + hosts, >+ cmd.extend(hosts) >+ >+ self.output.write('\nnetselect(): running "%s"\n' >+ % ' '.join(cmd), 2) >+ >+ proc = subprocess.Popen(cmd, > stdout=subprocess.PIPE, stderr=subprocess.PIPE) > > out, err = proc.communicate() >-- >2.21.0 >
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 582508
: 577888