Browse Source

Update vendor dir modified time after every install/update, fixes #2764

Jordi Boggiano 11 years ago
parent
commit
e1e48b28f7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/Composer/Installer.php

+ 5 - 0
src/Composer/Installer.php

@@ -297,6 +297,11 @@ class Installer
                 $eventName = $this->update ? ScriptEvents::POST_UPDATE_CMD : ScriptEvents::POST_INSTALL_CMD;
                 $this->eventDispatcher->dispatchCommandEvent($eventName, $this->devMode);
             }
+
+            $vendorDir = $this->config->get('vendor-dir');
+            if (is_dir($vendorDir)) {
+                touch($vendorDir);
+            }
         }
 
         return 0;