Skip to content

Commit

Permalink
Composer package names shouldn't include the Horde_ prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed May 5, 2017
1 parent ade113d commit 43b9f8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/lib/Conductor/Package2XmlToComposer.php
Expand Up @@ -522,7 +522,8 @@ public function convert($output_file = null)

if (empty($this->name) && isset($this->data['channel'])) {
$suggested_alias = $this->getChannelSuggestedAlias($this->data['channel']);
$pkgname = strtolower($this->data['name']);
$pkgname = preg_replace('/^Horde_/', '', $this->data['name']);
$pkgname = strtolower($pkgname);
$pkgname = str_replace('_', '-', $pkgname);
$this->name = strtolower($suggested_alias . '/' . $pkgname);
}
Expand Down

0 comments on commit 43b9f8f

Please sign in to comment.