Index: branches/ariel/xmldumps-backup/worker.py |
— | — | @@ -395,7 +395,7 @@ |
396 | 396 | directory = self._getDumpRunInfoDirName() |
397 | 397 | dumpRunInfoFilename = self._getDumpRunInfoFileName() |
398 | 398 | # FileUtils.writeFile(directory, dumpRunInfoFilename, text, self.wiki.config.fileperms) |
399 | | - FileUtils.writeFile(self.wiki.config.tempDir, dumpRunInfoFilename, text, self.wiki.config.fileperms) |
| 399 | + FileUtils.writeFileInPlace(self.wiki.config.tempDir, dumpRunInfoFilename, text, self.wiki.config.fileperms) |
400 | 400 | |
401 | 401 | # format: name:%; updated:%; status:% |
402 | 402 | def _getStatusForJobFromRunInfoFileLine(self, line, jobName): |
— | — | @@ -1646,7 +1646,7 @@ |
1647 | 1647 | print "This means that the status information about the old run will be lost, and" |
1648 | 1648 | print "only the information about the current (and future) runs will be kept." |
1649 | 1649 | reply = raw_input("Continue anyways? [y/N]: ") |
1650 | | - if (not reply in "y", "Y"): |
| 1650 | + if (not reply in [ "y", "Y" ]): |
1651 | 1651 | raise RuntimeError( "No run information available for previous dump, exiting" ) |
1652 | 1652 | if (not self.wiki.existsPerDumpIndex()): |
1653 | 1653 | # AFAWK this is a new run (not updating or rerunning an old run), |