Skip to content

Commit

Permalink
Add custom packages first.
Browse files Browse the repository at this point in the history
  • Loading branch information
robocoder committed May 16, 2014
1 parent abba85e commit bdd25ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Khepin/Medusa/Command/MirrorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ protected function execute(InputInterface $input, OutputInterface $output)
throw new \Exception($medusaConfig . ': invalid json configuration');
}

foreach ($config->repositories as $repository) {
if (property_exists($repository, 'name')) {
$repos[] = $repository->name;
}
}

foreach ($config->require as $dependency) {
$output->writeln(' - Getting dependencies for <info>'.$dependency.'</info>');
$resolver = new DependencyResolver($dependency);
$deps = $resolver->resolve();
$repos = array_merge($repos, $deps);
}

foreach ($config->repositories as $repository) {
if (property_exists($repository, 'name')) {
$repos[] = $repository->name;
}
}

$repos = array_unique($repos);

$output->writeln('<info>Create mirror repositories</info>');
Expand Down

0 comments on commit bdd25ef

Please sign in to comment.