Thanks for your bugreport.
I tried today to reproduce what might cause the failure and I was unable
to reproduce it. The code should ensure that file that are invalid gets
deleted.
Here is the testcode I used to corrupt a half downloaded .gz file (for my own
later reference):
#!/usr/bin/python
import os
import sys
atime = os.stat(sys.argv[1])[7]
mtime = os.stat(sys.argv[1])[8]
d = open(sys.argv[1],"r").read()
s="xxxx"
s += d[4:]
open(sys.argv[1],"w").write(s)
os.utime(sys.argv[1], (atime, mtime))
Cheers,
Michael
** Changed in: apt (Ubuntu)
Status: Confirmed => Needs Info
Target: ubuntu-7.04 => later
--
corrupted file from download, not recoverable without messing about
https://bugs.launchpad.net/bugs/68202
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs