[med-svn] r1678 - trunk/community/infrastructure/scripts
tille at alioth.debian.org
tille at alioth.debian.org
Fri Apr 4 14:18:56 UTC 2008
Author: tille
Date: 2008-04-04 14:18:55 +0000 (Fri, 04 Apr 2008)
New Revision: 1678
Modified:
trunk/community/infrastructure/scripts/update-tasks
Log:
Enable other users to update the web pages
Modified: trunk/community/infrastructure/scripts/update-tasks
===================================================================
--- trunk/community/infrastructure/scripts/update-tasks 2008-04-02 14:46:46 UTC (rev 1677)
+++ trunk/community/infrastructure/scripts/update-tasks 2008-04-04 14:18:55 UTC (rev 1678)
@@ -234,6 +234,8 @@
print >> stderr, "Unable to create output directory", OUTPUTDIR[CDD]
outputfile = OUTPUTDIR[CDD] + "index.php"
+# Remove the file first, to enable other users to change permissions easily
+os.unlink(outputfile)
f = open(outputfile, "w")
tasks = cdeps.tasknames
@@ -255,6 +257,7 @@
for task in tasks:
outputfile = OUTPUTDIR[CDD] + task + '.php'
+ os.unlink(outputfile)
f = open(outputfile, "w")
# This is to avoid useless <br>eaks before closing the cell
More information about the debian-med-commit
mailing list