1
0
Fork 0

Add the package license for PEAR packages

Refs https://github.com/composer/satis/issues/192
pull/3562/head
Christophe Coevoet 2014-12-16 15:52:34 +01:00
parent c54d6f93e3
commit d22070526f
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ class PearRepository extends ArrayRepository
$package = new CompletePackage($composerPackageName, $normalizedVersion, $version);
$package->setType('pear-library');
$package->setDescription($packageDefinition->getDescription());
$package->setLicense(array($packageDefinition->getLicense()));
$package->setDistType('file');
$package->setDistUrl($distUrl);
$package->setAutoload(array('classmap' => array('')));