CVS: src/si/extras entitycheck.py,1.31,1.32
Mats Wichmann <[email protected]>
| Newsgroups | gmane.linux.lsb.implementation |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/lsb/src/si/extras
In directory sc8-pr-cvs1:/tmp/cvs-serv29708/si/extras
Modified Files:
entitycheck.py
Log Message:
Try to be cleaner about interrupted file retrievals
Index: entitycheck.py
===================================================================
RCS file: /cvsroot/lsb/src/si/extras/entitycheck.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** entitycheck.py 22 Mar 2003 14:38:37 -0000 1.31
--- entitycheck.py 26 Mar 2003 15:00:57 -0000 1.32
***************
*** 139,144 ****
self.message = "completed"
break
! except IOError:
! # if it died, remove the partial file
if os.path.exists(pkgpath): os.remove(pkgpath)
--- 139,144 ----
self.message = "completed"
break
! except (IOError, KeyboardInterrupt):
! # if it died or was interrupted, remove the partial file
if os.path.exists(pkgpath): os.remove(pkgpath)