r96651 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96650‎ | r96651 | r96652 >
Date:09:23, 9 September 2011
Author:ariel
Status:deferred
Tags:
Comment:
names of links in 'latest' directory should have 'latest' and not the date
Modified paths:
  • /branches/ariel/xmldumps-backup/worker.py (modified) (history)

Diff [purge]

Index: branches/ariel/xmldumps-backup/worker.py
@@ -1822,7 +1822,8 @@
18231823 if (self._enabled):
18241824 self.makeDir(self.dumpDir.latestDir())
18251825 realfile = self.dumpDir.filenamePublicPath(dumpFile)
1826 - link = os.path.join(self.dumpDir.latestDir(), dumpFile.filename)
 1826+ latestFilename = dumpFile.newFilename(dumpFile.dumpName, dumpFile.fileType, dumpFile.fileExt, 'latest', dumpFile.chunk, dumpFile.checkpoint, dumpFile.temp)
 1827+ link = os.path.join(self.dumpDir.latestDir(), latestFilename)
18271828 if exists(link) or os.path.islink(link):
18281829 if os.path.islink(link):
18291830 realfile = os.readlink(link)

Status & tagging log