Skip to content

Commit

Permalink
Cleanup after repo split.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 11, 2017
1 parent 2fd4717 commit f259209
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions lib/Horde/Core/Db/Migration.php
Expand Up @@ -45,10 +45,7 @@ class Horde_Core_Db_Migration
* Searches all installed applications and libraries for migration
* directories and builds lists of migrateable modules and directories.
*
* @param string $basedir Base directory of a Git checkout. If provided
* either a framework/ sub directory or the base
* folder for a split checkout is searched for
* migration scripts too.
* @param string $basedir Base directory of all Git checkouts.
* @param string $pearconf Path to a PEAR configuration file.
*/
public function __construct($basedir = null, $pearconf = null)
Expand All @@ -68,15 +65,9 @@ public function __construct($basedir = null, $pearconf = null)
error_reporting($old_error_reporting & ~E_DEPRECATED);
$pear = new PEAR_Config($pearconf);

// Loop through local framework checkout.
// Loop through local framework checkouts.
if ($basedir) {
// Support both the split repo and monolithic for now.
// @todo - remove when we perform official split.
if (!file_exists($basedir . '/.git')) {
$path = $basedir . '/*/migration';
} else {
$path = $basedir . '/framework/*/migration';
}
$path = $basedir . '/*/migration';
$packageFile = new PEAR_PackageFile($pear);
foreach (glob($path) as $dir) {
$package = $packageFile->fromPackageFile(
Expand Down

0 comments on commit f259209

Please sign in to comment.