From 579ffdb464544271343f8141ef1891bea136e7ea Mon Sep 17 00:00:00 2001 From: Stephan Wentz Date: Tue, 4 Mar 2014 10:58:45 +0100 Subject: [PATCH] only dump single repository --- src/Composer/Satis/Command/BuildCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Satis/Command/BuildCommand.php b/src/Composer/Satis/Command/BuildCommand.php index 3a69b78c..738fba60 100644 --- a/src/Composer/Satis/Command/BuildCommand.php +++ b/src/Composer/Satis/Command/BuildCommand.php @@ -153,14 +153,14 @@ protected function execute(InputInterface $input, OutputInterface $output) $config['repositories'] = array($singleRepositoryConfig); $composer = $this->getApplication()->getComposer(true, $config); - $packages = $this->selectPackages($composer, $output, $verbose, $requireAll, $requireDependencies); + $packages = $dumpPackages = $this->selectPackages($composer, $output, $verbose, $requireAll, $requireDependencies); // merge with cached data $packages = array_merge($otherPackages, $packages); ksort($packages, SORT_STRING); } else { $composer = $this->getApplication()->getComposer(true, $config); - $packages = $this->selectPackages($composer, $output, $verbose, $requireAll, $requireDependencies); + $packages = $dumpPackages = $this->selectPackages($composer, $output, $verbose, $requireAll, $requireDependencies); } if ($htmlView = !$input->getOption('no-html-output')) { @@ -169,7 +169,7 @@ protected function execute(InputInterface $input, OutputInterface $output) if (isset($config['archive']['directory'])) { $skipErrors = (bool)$input->getOption('skip-errors'); - $this->dumpDownloads($config, $packages, $output, $outputDir, $skipErrors); + $this->dumpDownloads($config, $dumpPackages, $output, $outputDir, $skipErrors); } file_put_contents($outputDir.'/packages.cache', serialize($packages));