From a718c18048e291bc3ea28733e7b979d266fe4fd2 Mon Sep 17 00:00:00 2001 From: David Barratt Date: Sat, 13 Sep 2014 17:26:32 -0400 Subject: [PATCH 1/2] Remove type assumption. --- src/Mapper.php | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 src/Mapper.php diff --git a/src/Mapper.php b/src/Mapper.php old mode 100644 new mode 100755 index 820d708..08f0112 --- a/src/Mapper.php +++ b/src/Mapper.php @@ -56,6 +56,11 @@ public function mapContrib(InstallationManager $im, RepositoryManager $rm) ->getCanonicalPackages(); foreach ($packages as $package) { if ($drupalType = $this->getDrupalType($package)) { + + if (!isset($typePathMap[$drupalType])) { + continue; + } + $installPath = $im->getInstaller($package->getType()) ->getInstallPath($package); if (strpos($installPath, $root = $this->getRoot()) !== false) { From affc49358de5f0f2d037c0983290b5d0866354bd Mon Sep 17 00:00:00 2001 From: David Barratt Date: Sat, 13 Sep 2014 17:27:15 -0400 Subject: [PATCH 2/2] Revert mode change. --- src/Mapper.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 src/Mapper.php diff --git a/src/Mapper.php b/src/Mapper.php old mode 100755 new mode 100644