浏览代码

fix LICENSE hack in compile script

Jordi Boggiano 13 年之前
父节点
当前提交
5b42f99441
共有 1 个文件被更改,包括 3 次插入1 次删除
  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);