From 0aad11801e43bb67be500d35ce3b733cf5d5dfa0 Mon Sep 17 00:00:00 2001 From: Serge Smertin Date: Mon, 25 Mar 2013 00:04:34 +0100 Subject: [PATCH] added logging for wrong files --- src/Composer/Repository/ArtifactRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/ArtifactRepository.php b/src/Composer/Repository/ArtifactRepository.php index 4cf2b4b52..7ddac5ed3 100644 --- a/src/Composer/Repository/ArtifactRepository.php +++ b/src/Composer/Repository/ArtifactRepository.php @@ -32,6 +32,7 @@ class ArtifactRepository extends ArrayRepository public function __construct(array $repoConfig, IOInterface $io, Config $config, array $drivers = null) { $this->path = $repoConfig['url']; + $this->io = $io; } protected function initialize() @@ -55,7 +56,7 @@ class ArtifactRepository extends ArrayRepository $package = $this->getComposerInformation($file); if(!$package) { - // @todo add log + $this->io->write("File {$file->getBasename()} doesn't seem to hold a package"); continue; }