[med-svn] r1835 - trunk/community/infrastructure/scripts
tille at alioth.debian.org
tille at alioth.debian.org
Thu May 8 08:41:07 UTC 2008
Author: tille
Date: 2008-05-08 08:41:05 +0000 (Thu, 08 May 2008)
New Revision: 1835
Modified:
trunk/community/infrastructure/scripts/update-tasks
Log:
Don't fail if a new task package appears.
Modified: trunk/community/infrastructure/scripts/update-tasks
===================================================================
--- trunk/community/infrastructure/scripts/update-tasks 2008-05-07 10:00:02 UTC (rev 1834)
+++ trunk/community/infrastructure/scripts/update-tasks 2008-05-08 08:41:05 UTC (rev 1835)
@@ -257,7 +257,10 @@
for task in tasks:
outputfile = OUTPUTDIR[CDD] + task + '.php'
- os.unlink(outputfile)
+ try:
+ os.unlink(outputfile)
+ except: # simply continue if file does not exist
+ pass
f = open(outputfile, "w")
# This is to avoid useless <br>eaks before closing the cell
More information about the debian-med-commit
mailing list