Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 813340 Details for
Bug 872218
app-portage/mirrorselect --all broken in (~amd64)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Potential Fix
dash-all.diff (text/plain), 1.49 KB, created by
xpenev
on 2022-09-21 15:55:19 UTC
(
hide
)
Description:
Potential Fix
Filename:
MIME Type:
Creator:
xpenev
Created:
2022-09-21 15:55:19 UTC
Size:
1.49 KB
patch
obsolete
>diff --git a/mirrorselect/main.py b/mirrorselect/main.py >index 0fbd7b2..444582a 100755 >--- a/mirrorselect/main.py >+++ b/mirrorselect/main.py >@@ -145,6 +145,11 @@ class MirrorSelect(object): > self.output.white(" interactive:"), > " # mirrorselect -i -r", > )) >+ >+ def set_servers(option, opt_str, value, parser): >+ set_servers.user_configured = True >+ setattr(parser.values, option.dest, value) >+ > parser = OptionParser( > formatter=ColoredFormatter(self.output), description=desc, > version='Mirrorselect version: %s' % version) >@@ -236,8 +241,8 @@ class MirrorSelect(object): > "-q", "--quiet", action="store_const", const=0, dest="verbosity", > help="Quiet mode") > group.add_option( >- "-s", "--servers", action="store", type="int", default=1, >- help="Specify Number of servers for Automatic Mode " >+ "-s", "--servers", action="callback", callback=set_servers, >+ type="int", default=1, help="Specify Number of servers for Automatic Mode " > "to select. this is only valid for download mirrors. " > "If this is not specified, a default of 1 is used.") > group.add_option( >@@ -271,7 +276,7 @@ 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') > >- if options.servers and options.all_mirrors: >+ if options.all_mirrors and hasattr(set_servers, 'user_configured'): > self.output.print_err('Choose at most one of -s or -a') > > if options.interactive and (
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 872218
: 813340