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

Collapse All | Expand All

(-)/http-replicator-2.0/http-replicator-2.0-orig/HttpReplicator.py (+3 lines)
Lines 441-446 Link Here
441
				assert self.size == self.data.tell(), 'size mismatch' # check size
441
				assert self.size == self.data.tell(), 'size mismatch' # check size
442
442
443
			self.prepare(self.file) # create directories
443
			self.prepare(self.file) # create directories
444
			#Gentoo 
445
			if os.path.isfile(self.file):
446
				result=	os.remove(self.file)
444
			file = open(self.file, 'w') # open file for writing
447
			file = open(self.file, 'w') # open file for writing
445
448
446
			self.data.seek(0) # move to beginning of file
449
			self.data.seek(0) # move to beginning of file

Return to bug 50872