// clean-up previously created nodes
$this->installation->nodeBuilder->purgeNodes();
+ if ($this->installation->getAction() === 'update' && $this->queue->package === 'com.woltlab.wcf') {
+ WCF::checkWritability();
+ }
+
// create node tree
$this->installation->nodeBuilder->buildNodes();
$nextNode = $this->installation->nodeBuilder->getNextNode();
// clean-up previously created nodes
$installation->nodeBuilder->purgeNodes();
+ if ($package !== null && $package->package === 'com.woltlab.wcf') {
+ WCF::checkWritability();
+ }
+
// create node tree
$installation->nodeBuilder->buildNodes();
$node = $installation->nodeBuilder->getNextNode();
protected function installPackage(array $nodeData) {
$installationStep = new PackageInstallationStep();
- if ($this->getAction() === 'update' && $this->getPackageName() === 'com.woltlab.wcf') {
- WCF::checkWritability();
- }
-
// check requirements
if (!empty($nodeData['requirements'])) {
foreach ($nodeData['requirements'] as $package => $requirementData) {
}
}
+ if ($archive->getPackageInfo('name') === 'com.woltlab.wcf') {
+ WCF::checkWritability();
+ }
+
// create new queue
$queue = PackageInstallationQueueEditor::create([
'parentQueueID' => $queue->queueID,