Procházet zdrojové kódy

fix LICENSE hack in compile script

Jordi Boggiano před 13 roky
rodič
revize
5b42f99441
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      src/Composer/Compiler.php

+ 3 - 1
src/Composer/Compiler.php

@@ -104,8 +104,10 @@ class Compiler
 
         if ($strip) {
             $content = php_strip_whitespace($file);
-        } else {
+        } elseif ('LICENSE' === basename($file)) {
             $content = "\n".file_get_contents($file)."\n";
+        } else {
+            $content = file_get_contents($file);
         }
 
         $content = str_replace('@package_version@', $this->version, $content);