/[debian-med]/trunk/community/infrastructure/scripts/update-tasks
ViewVC logotype

Diff of /trunk/community/infrastructure/scripts/update-tasks

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1677 by tille, Mon Mar 31 15:17:41 2008 UTC revision 1678 by tille, Fri Apr 4 14:18:55 2008 UTC
# Line 234  if not os.access(OUTPUTDIR[CDD], os.W_OK Line 234  if not os.access(OUTPUTDIR[CDD], os.W_OK
234                  print >> stderr, "Unable to create output directory", OUTPUTDIR[CDD]                  print >> stderr, "Unable to create output directory", OUTPUTDIR[CDD]
235    
236  outputfile = OUTPUTDIR[CDD] + "index.php"  outputfile = OUTPUTDIR[CDD] + "index.php"
237    # Remove the file first, to enable other users to change permissions easily
238    os.unlink(outputfile)
239  f = open(outputfile, "w")  f = open(outputfile, "w")
240    
241  tasks        = cdeps.tasknames  tasks        = cdeps.tasknames
# Line 255  f.close() Line 257  f.close()
257    
258  for task in tasks:  for task in tasks:
259          outputfile = OUTPUTDIR[CDD] + task + '.php'          outputfile = OUTPUTDIR[CDD] + task + '.php'
260            os.unlink(outputfile)
261          f = open(outputfile, "w")          f = open(outputfile, "w")
262    
263          # This is to avoid useless <br>eaks before closing the cell          # This is to avoid useless <br>eaks before closing the cell

Legend:
Removed from v.1677  
changed lines
  Added in v.1678

  ViewVC Help
Powered by ViewVC 1.1.5