r51315 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51314‎ | r51315 | r51316 >
Date:22:10, 1 June 2009
Author:kim
Status:deferred
Tags:
Comment:
minor tpyo
Modified paths:
  • /trunk/testing/installer/installation_system.py (modified) (history)

Diff [purge]

Index: trunk/testing/installer/installation_system.py
@@ -36,6 +36,19 @@
3737 if instance:
3838 self.set_instance(instance)
3939
 40+ def instancedir(self):
 41+ if self.instance:
 42+ return os.path.join(settings.instancesdir,self.instance)
 43+ else:
 44+ return None
 45+
 46+ def dbname(self):
 47+ """find and return an appropriate database name"""
 48+ return settings.dbname_prefix+self.instance
 49+
 50+ def mysql_allsettings(self):
 51+ return settings.mysql_command+" "+self.dbname()
 52+
4053 def set_instance(self,instance):
4154 self.instance=instance
4255
@@ -160,6 +173,9 @@
161174 env["REVISION"]=self.revision or ''
162175 env["TAG"]=self.tag or ''
163176 env["MYSQL_COMMAND"]=settings.mysql_command
 177+ env["MYSQL_ALLSETTINGS"]=self.mysql_allsettings()
 178+ env["DBNAME"]=self.dbname()
 179+ env["INSTANCEDIR"]=self.instancedir()
164180
165181 if isinstance(task,str):
166182 task2=[task]

Status & tagging log