Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 442874 | Differences between
and this patch

Collapse All | Expand All

(-)a/http-replicator (-1 / +6 lines)
Lines 311-317 class HttpClient (Http): Link Here
311
			self.log.info('requested range: bytes %s to %s' % self.range) # log request
311
			self.log.info('requested range: bytes %s to %s' % self.range) # log request
312
312
313
		head = ''
313
		head = ''
314
		for tail in self.path.split('/'): # iterate over items in path
314
		adjUrlPath = self.path
315
		if not self.direct and self.flat:
316
			uniqueCacheName = body.get('x-unique-cache-name')
317
			if uniqueCacheName:
318
				adjUrlPath = uniqueCacheName
319
		for tail in adjUrlPath.split('/'): # iterate over items in path
315
			head = os.path.join(head, tail) # build target path
320
			head = os.path.join(head, tail) # build target path
316
			if head in self.alias: # path up till now hos an alias
321
			if head in self.alias: # path up till now hos an alias
317
				head = self.alias[head] # replace by alias
322
				head = self.alias[head] # replace by alias

Return to bug 442874