소스 검색

Make package checks case insensitive

Jordi Boggiano 13 년 전
부모
커밋
41d4dcabeb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Packagist/WebBundle/Command/UpdatePackagesCommand.php

+ 1 - 1
src/Packagist/WebBundle/Command/UpdatePackagesCommand.php

@@ -142,7 +142,7 @@ EOF
 
     private function updateInformation(OutputInterface $output, RegistryInterface $doctrine, $package, RepositoryInterface $repository, $identifier, array $data)
     {
-        if ($data['name'] !== $package->getName()) {
+        if (strtolower($data['name']) !== strtolower($package->getName())) {
             $output->writeln('<error>Package name seems to have changed for '.$repository->getUrl().'@'.$identifier.', skipping.</error>');
             return;
         }