r96272 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96271‎ | r96272 | r96273 >
Date:08:24, 5 September 2011
Author:ariel
Status:deferred
Tags:
Comment:
check actual location of file being linked to before we claim it doesn't exist, rather than some buggy one
Modified paths:
  • /branches/ariel/xmldumps-backup/worker.py (modified) (history)

Diff [purge]

Index: branches/ariel/xmldumps-backup/worker.py
@@ -1831,7 +1831,7 @@
18321832 link = os.path.join(latestDir,f)
18331833 if os.path.islink(link):
18341834 realfile = os.readlink(link)
1835 - if not exists(realfile):
 1835+ if not exists(os.path.join(latestDir,realfile)):
18361836 os.remove(link)
18371837
18381838 class Feeds(object):

Status & tagging log