From e1e48b28f75e9c6a293fc032588093c6f6d8d3fb Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 26 Feb 2014 10:43:26 +0100 Subject: [PATCH] Update vendor dir modified time after every install/update, fixes #2764 --- src/Composer/Installer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 4e4502dfe..d373beb43 100644 --- a/src/Composer/Installer.php +++ b/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;