--- /http-replicator-2.0/http-replicator-2.0-orig/HttpReplicator.py 2004-04-30 04:49:11.000000000 -0500 +++ /http-replicator-2.0/HttpReplicator.py 2004-05-17 04:29:02.000000000 -0500 @@ -441,6 +441,9 @@ assert self.size == self.data.tell(), 'size mismatch' # check size self.prepare(self.file) # create directories + #Gentoo + if os.path.isfile(self.file): + result= os.remove(self.file) file = open(self.file, 'w') # open file for writing self.data.seek(0) # move to beginning of file