From: Kunal Mehta Date: Sat, 31 Jan 2015 21:55:13 +0000 (-0800) Subject: update.php: Add option to not check if external dependencies are up to date X-Git-Tag: 1.31.0-rc.0~12403^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=def1783b2766fc03f2f3573db736e14b8a1a309d;p=lhc%2Fweb%2Fwiklou.git update.php: Add option to not check if external dependencies are up to date Bug: T88211 Change-Id: Ie84dd6320e5e17cd30a063c61f2b8a3af0549fac --- diff --git a/maintenance/update.php b/maintenance/update.php index 8ab1ddb9b0..182a2c4660 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -56,6 +56,10 @@ class UpdateMediaWiki extends Maintenance { true ); $this->addOption( 'force', 'Override when $wgAllowSchemaUpdates disables this script' ); + $this->addOption( + 'skip-external-dependencies', + 'Skips checking whether external dependencies are up to date, mostly for developers' + ); } function getDbType() { @@ -132,8 +136,14 @@ class UpdateMediaWiki extends Maintenance { } // Check external dependencies are up to date - $composerLockUpToDate = $this->runChild( 'CheckComposerLockUpToDate' ); - $composerLockUpToDate->execute(); + if ( !$this->hasOption( 'skip-external-dependencies' ) ) { + $composerLockUpToDate = $this->runChild( 'CheckComposerLockUpToDate' ); + $composerLockUpToDate->execute(); + } else { + $this->output( + "Skipping checking whether external dependencies are up to date, proceed at your own risk\n" + ); + } # Attempt to connect to the database as a privileged user # This will vomit up an error if there are permissions problems