Skip to content

Commit

Permalink
Migrated from framework/ to split repositories.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 10, 2017
1 parent 3ce6762 commit 62bc845
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bin/horde-bootstrap
Expand Up @@ -15,7 +15,7 @@ require_once 'PEAR/Command/Channels.php';
require_once 'PEAR/Command/Install.php';
require_once 'PEAR/Frontend/CLI.php';

$framework = __DIR__ . '/../../framework';
$framework = __DIR__ . '/../..';
require_once $framework . '/Exception/lib/Horde/Exception.php';
require_once $framework . '/Exception/lib/Horde/Exception/Pear.php';
require_once $framework . '/Pear/lib/Horde/Pear/Package/Xml.php';
Expand Down
6 changes: 1 addition & 5 deletions data/jenkins/config/config.xml
Expand Up @@ -9,11 +9,7 @@ if (!isset($options['toolsdir'])) {
$toolsdir = $options['toolsdir'];

$directory = $config->getPath();
if (basename(dirname($directory)) == 'framework') {
$sourcepath = 'framework/' . basename($directory);
} else {
$sourcepath = basename($directory);
}
$sourcepath = basename($directory);

$component = $config->getComponent();
$description = $component->getDescription();
Expand Down
2 changes: 1 addition & 1 deletion lib/Components/Dependencies/Bootstrap.php
Expand Up @@ -81,7 +81,7 @@ public function getInstance($interface)
);
break;
case 'Horde_Cli':
require_once __DIR__ . '/../../../../framework/Cli/lib/Horde/Cli.php';
require_once __DIR__ . '/../../../../Cli/lib/Horde/Cli.php';
$this->_instances[$interface] = new Horde_Cli();
break;
}
Expand Down
10 changes: 1 addition & 9 deletions lib/Components/Helper/Root.php
Expand Up @@ -102,18 +102,10 @@ public function __construct(
public function getPackageXml($name)
{
$package_file = $this->getRoot() . '/' . $name . '/package.xml';
if (!file_exists($package_file)) {
$package_file = $this->getRoot() . '/framework/' . $name
. '/package.xml';
}
if (!file_exists($package_file) && substr($name, 0, 6) == 'Horde_') {
$package_file = $this->getRoot() . '/framework/'
$package_file = $this->getRoot()
. substr($name, 6) . '/package.xml';
}
if (!file_exists($package_file)) {
$package_file = $this->getRoot() . '/bundles/' . $name
. '/package.xml';
}
if (!file_exists($package_file)) {
throw new Components_Exception(sprintf('Unknown package %s.', $name));
}
Expand Down

0 comments on commit 62bc845

Please sign in to comment.