this is was our favorite bug ever.

now this is a retry from me ;).
This commit is contained in:
Barış Metin
2005-10-02 01:22:13 +00:00
parent 2aecd73092
commit 47811b9b3b
+3 -2
View File
@@ -154,8 +154,9 @@ class ArchiveZip(ArchiveBase):
# check that output dir is present
util.check_dir(os.path.dirname(ofile))
# remove output file we might be overwriting
if os.path.exists(ofile):
# remove output file we might be overwriting.
# (also check for islink? for broken symlinks...)
if os.path.exists(ofile) or os.path.islink(ofile):
os.remove(ofile)
if info.external_attr == self.symmagic: