Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 428380 Details for
Bug 497596
Fix PORTAGE_RSYNC_RETRIES setting functionality in =sys-apps/portage-2.1* [PATCH]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
portage-2.2.20.1-fix-rsync-retries.patch
portage-rsync-retries.patch (text/plain), 955 bytes, created by
Chris White
on 2016-03-16 20:18:30 UTC
(
hide
)
Description:
portage-2.2.20.1-fix-rsync-retries.patch
Filename:
MIME Type:
Creator:
Chris White
Created:
2016-03-16 20:18:30 UTC
Size:
955 bytes
patch
obsolete
>Fix PORTAGE_RSYNC_RETRIES functionality so it works according to the >documentation in 'man make.conf'. > >--- a/pym/portage/sync/modules/rsync/rsync.py >+++ b/pym/portage/sync/modules/rsync/rsync.py >@@ -144,6 +144,7 @@ class RsyncSync(NewBase): > > addrinfos = None > uris = [] >+ uris_save = [] > > try: > addrinfos = getaddrinfo_validate( >@@ -203,10 +204,17 @@ class RsyncSync(NewBase): > while (1): > if uris: > dosyncuri = uris.pop() >+ uris_save.append(dosyncuri) > else: >- writemsg("!!! Exhausted addresses for %s\n" >- % _unicode_decode(hostname), noiselevel=-1) >- return (1, False) >+ if maxretries < 0 or retries > maxretries: >+ writemsg("!!! Exhausted addresses for %s\n" >+ % _unicode_decode(hostname), noiselevel=-1) >+ return (1, False) >+ else: >+ uris_save.reverse() >+ uris = uris_save >+ dosyncuri = uris_save.pop() >+ uris_save = [dosyncuri] > > if (retries==0): > if "--ask" in opts:
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 497596
:
367454
| 428380