r35889 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35888‎ | r35889 | r35890 >
Date:22:16, 4 June 2008
Author:brion
Status:old
Tags:
Comment:
Use the new standardized --wiki=%s param for passing the wiki to command-line scripts.
Modified paths:
  • /trunk/backup/worker.py (modified) (history)

Diff [purge]

Index: trunk/backup/worker.py
@@ -191,7 +191,7 @@
192192 self.dbServer = self.defaultServer()
193193
194194 def defaultServer(self):
195 - command = "%s -q %s/maintenance/getSlaveServer.php %s --group=dump" % shellEscape((
 195+ command = "%s -q %s/maintenance/getSlaveServer.php --wiki=%s --group=dump" % shellEscape((
196196 self.config.php, self.config.wikiDir, self.dbName))
197197 return self.runAndReturn(command).strip()
198198
@@ -641,7 +641,8 @@
642642 if exists(filename):
643643 os.remove(filename)
644644 command = """
645 -%s -q %s/maintenance/dumpBackup.php %s \
 645+%s -q %s/maintenance/dumpBackup.php \
 646+ --wiki=%s \
646647 --full \
647648 --stub \
648649 --report=10000 \
@@ -720,7 +721,8 @@
721722 prefetch = None
722723
723724 dumpCommand = """
724 -%s -q %s/maintenance/dumpTextPass.php %s \
 725+%s -q %s/maintenance/dumpTextPass.php \
 726+ --wiki=%s \
725727 %s \
726728 %s \
727729 %s \
@@ -823,7 +825,8 @@
824826
825827 def run(self, runner):
826828 command = """
827 -%s -q %s/maintenance/dumpBackup.php %s \
 829+%s -q %s/maintenance/dumpBackup.php \
 830+ --wiki=%s \
828831 --plugin=AbstractFilter:%s/extensions/ActiveAbstract/AbstractFilter.php \
829832 --current \
830833 --report=1000 \

Status & tagging log