소스 검색

Fix missing trailing / in repository paths

Dennis Birkholz 9 년 전
부모
커밋
2fb7dd881a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Composer/Repository/PathRepository.php

+ 2 - 2
src/Composer/Repository/PathRepository.php

@@ -104,8 +104,8 @@ class PathRepository extends ArrayRepository
         $foundPackage = false;
         $foundPackage = false;
 
 
         foreach ($this->getPaths() as $path) {
         foreach ($this->getPaths() as $path) {
-            $path = realpath($path);
-            
+            $path = realpath($path) . '/';
+
             $composerFilePath = $path.'composer.json';
             $composerFilePath = $path.'composer.json';
             if (!file_exists($composerFilePath)) {
             if (!file_exists($composerFilePath)) {
                 continue;
                 continue;