Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 394206 Details for
Bug 442874
net-proxy/http-replicator - local rsync server reports install flash player as wrong size
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add x-unique-cache-name to http-replicator-3.0
http-replicator-3-unique-cache-name.patch (text/plain), 1.17 KB, created by
Matthew Ogilvie
on 2015-01-17 19:53:05 UTC
(
hide
)
Description:
add x-unique-cache-name to http-replicator-3.0
Filename:
MIME Type:
Creator:
Matthew Ogilvie
Created:
2015-01-17 19:53:05 UTC
Size:
1.17 KB
patch
obsolete
>Author: Matthew Ogilvie >Date: Sun Dec 28 20:14:15 2014 -0700 > > honor x-unique-cache-name header in flat mode, if present > > This allows things like different versions of the adobe-flash > downloader that are given different names in a flat download > directory (like in gentoo) to work in an http-replicator cache > as well. As long as the fetcher passes the custom name through > the experimental header... > > See gentoo bug # 442874 > >diff --git a/http-replicator b/http-replicator >index 19ae427..befe9f2 100755 >--- a/http-replicator >+++ b/http-replicator >@@ -311,7 +311,12 @@ class HttpClient (Http): > self.log.info('requested range: bytes %s to %s' % self.range) # log request > > head = '' >- for tail in self.path.split('/'): # iterate over items in path >+ adjUrlPath = self.path >+ if not self.direct and self.flat: >+ uniqueCacheName = body.get('x-unique-cache-name') >+ if uniqueCacheName: >+ adjUrlPath = uniqueCacheName >+ for tail in adjUrlPath.split('/'): # iterate over items in path > head = os.path.join(head, tail) # build target path > if head in self.alias: # path up till now hos an alias > head = self.alias[head] # replace by alias
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 442874
:
329342
|
392616
|
392618
|
392620
|
393508
|
393512
|
393518
| 394206 |
394208
|
394210
|
428742
|
428792
|
429496
|
429522