Add checkDependencies.php
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 14 Apr 2019 10:19:12 +0000 (03:19 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Fri, 24 May 2019 18:56:03 +0000 (11:56 -0700)
commitc20215d6f09ca4348f16b502babbbc69d5017598
tree793a77219f1f08a7b01c193a0f6a114bf429822b
parent1aa819513ba34521d9ef59978c0e23a4132bcaa1
Add checkDependencies.php

Checks to see whether the specified MediaWiki extensions/skins have all of
their dependencies. Each thing will get a status of:

* 'loaded' (it's already activated in LocalSettings.php, and therefore all
  the dependencies are present)
* 'present' (it exists in the filesystem, but not yet activated)
* 'missing' (does not exist in the filesystem)
* 'incompatible-*' (some version requirement is incompatible)

JSON output is available with --json for use in scripts.

Development dependencies will be checked if --dev is provided.

This is roughly based on the logic already existing in the Installer. It may
be worth deduplicating that code in the future.

Bug: T193824
Change-Id: Iae9178225c10b6374484274d8848bbea6621c8c2
autoload.php
maintenance/checkDependencies.php [new file with mode: 0644]