operations case touch
parent
33db6ec71b
commit
1e92780600
|
@ -313,15 +313,6 @@ class Installer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->update) {
|
|
||||||
$vendorDir = $this->config->get('vendor-dir');
|
|
||||||
if (is_dir($vendorDir)) {
|
|
||||||
// suppress errors as this fails sometimes on OSX for no apparent reason
|
|
||||||
// see https://github.com/composer/composer/issues/4070#issuecomment-129792748
|
|
||||||
@touch($vendorDir);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->runScripts) {
|
if ($this->runScripts) {
|
||||||
// dispatch post event
|
// dispatch post event
|
||||||
$eventName = $this->update ? ScriptEvents::POST_UPDATE_CMD : ScriptEvents::POST_INSTALL_CMD;
|
$eventName = $this->update ? ScriptEvents::POST_UPDATE_CMD : ScriptEvents::POST_INSTALL_CMD;
|
||||||
|
@ -633,6 +624,15 @@ class Installer
|
||||||
$localRepo->write();
|
$localRepo->write();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($operations) {
|
||||||
|
$vendorDir = $this->config->get('vendor-dir');
|
||||||
|
if (is_dir($vendorDir)) {
|
||||||
|
// suppress errors as this fails sometimes on OSX for no apparent reason
|
||||||
|
// see https://github.com/composer/composer/issues/4070#issuecomment-129792748
|
||||||
|
@touch($vendorDir);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return array(0, $devPackages);
|
return array(0, $devPackages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue