r97401 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97400‎ | r97401 | r97402 >
Date:03:55, 18 September 2011
Author:aaron
Status:ok
Tags:
Comment:
Create l10n cache dir so LU works
Modified paths:
  • /trunk/tools/mwmultiversion/multiversion/checkoutMediaWiki (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/multiversion/checkoutMediaWiki
@@ -36,6 +36,8 @@
3737 die( "Usage: checkoutMediaWiki X.XXwmfX php-X.XX\n" );
3838 }
3939
 40+ echo "Creating new MediaWiki install at $commonHomeDir/$dstVersion...\n\n";
 41+
4042 # The url to SVN to checkout from
4143 $source = "svn+ssh://svn.wikimedia.org/svnroot/mediawiki/branches/wmf/$svnVersion";
4244
@@ -157,7 +159,17 @@
158160 print "Symlink file already exists: $path\n";
159161 }
160162
161 - print "MediaWiki $dstVersionNum, from $svnVersion, successfully checked out.\n";
 163+ # Create l10n cache dir
 164+ $l10nDir = "$commonHomeDir/php-$dstVersionNum/cache/l10n";
 165+ if ( !file_exists( $l10nDir ) ) {
 166+ if ( mkdir( $l10nDir, 0775 ) ) {
 167+ print "Created php-$dstVersionNum/cache/l10n directory.\n";
 168+ }
 169+ } else {
 170+ print "Directory already exists: $l10nDir\n";
 171+ }
 172+
 173+ print "\nMediaWiki $dstVersionNum, from $svnVersion, successfully checked out.\n";
162174 }
163175
164176 checkoutMediaWiki();

Status & tagging log