Quellcode durchsuchen

Merge pull request #3962 from joshdifabio/travis-cache-fix

Fix Travis cache issue (~/.composer/cache changes on every build)
Jordi Boggiano vor 10 Jahren
Ursprung
Commit
8daebe8926
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/Composer/Cache.php

+ 1 - 1
src/Composer/Cache.php

@@ -136,7 +136,7 @@ class Cache
     {
         $file = preg_replace('{[^'.$this->whitelist.']}i', '-', $file);
         if ($this->enabled && file_exists($this->root . $file)) {
-            touch($this->root . $file);
+            touch($this->root . $file, filemtime($this->root . $file), time());
 
             if ($this->io->isDebug()) {
                 $this->io->writeError('Reading '.$this->root . $file.' from cache');