Browse Source

Make sure we mark re-dumped all v2 files at least once even if not changed

Jordi Boggiano 4 years ago
parent
commit
b24eacf2e1
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/Packagist/WebBundle/Package/SymlinkDumper.php

+ 6 - 1
src/Packagist/WebBundle/Package/SymlinkDumper.php

@@ -901,7 +901,12 @@ class SymlinkDumper
 
     private function writeV2File($path, $contents)
     {
-        if (file_exists($path) && file_get_contents($path) === $contents) {
+        if (
+            file_exists($path)
+            && file_get_contents($path) === $contents
+            // files dumped before then are susceptible to be out of sync, so force them all to be dumped once more at least
+            && filemtime($path) >= 1587654540
+        ) {
             return;
         }