Index: trunk/backup/worker.py |
— | — | @@ -261,6 +261,7 @@ |
262 | 262 | self.lastFailed = True |
263 | 263 | else: |
264 | 264 | for f in item.listFiles(self): |
| 265 | + self.saveSymlink(f) |
265 | 266 | self.saveFeed(f) |
266 | 267 | self.checksum(f) |
267 | 268 | self.lastFailed = False |
— | — | @@ -477,12 +478,12 @@ |
478 | 479 | output.write(checksum) |
479 | 480 | |
480 | 481 | def completeDump(self, files): |
481 | | - self.makeDir(join(self.wiki.publicDir(), 'latest')) |
482 | | - for file in files: |
483 | | - self.saveSymlink(file) |
| 482 | + # FIXME: md5sums.txt won't be consistent with mixed data. |
| 483 | + # Buuuuut life sucks, huh? |
484 | 484 | self.saveSymlink("md5sums.txt") |
485 | 485 | |
486 | 486 | def saveSymlink(self, file): |
| 487 | + self.makeDir(join(self.wiki.publicDir(), 'latest')) |
487 | 488 | real = self.publicPath(file) |
488 | 489 | link = self.latestPath(file) |
489 | 490 | if exists(link) or os.path.islink(link): |