Skip to content

Commit

Permalink
Fix package names of replacements.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 11, 2017
1 parent fe699b0 commit d3f2d1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Components/Component/Source.php
Expand Up @@ -381,6 +381,7 @@ public function updateComposerFromHordeYml()
'$1.*',
$yaml['version']['release']
);
$replacePrefix = $yaml['type'] == 'library' ? 'Horde_' : '';
$dependencies = array('required' => array(), 'optional' => array());
foreach ($yaml['dependencies'] as $required => $dependencyTypes) {
foreach ($dependencyTypes as $type => $packages) {
Expand Down Expand Up @@ -437,8 +438,8 @@ public function updateComposerFromHordeYml()
'require' => $dependencies['required'],
'suggest' => $dependencies['optional'],
'replace' => array(
'pear-pear.horde.org/' . $yaml['id'] => $replaceVersion,
'pear-horde/' . $yaml['id'] => $replaceVersion,
'pear-pear.horde.org/' . $replacePrefix . $yaml['id'] => $replaceVersion,
'pear-horde/' . $replacePrefix . $yaml['id'] => $replaceVersion,
),
'autoload' => $autoload,
);
Expand Down

0 comments on commit d3f2d1e

Please sign in to comment.