// required packages
$this->buildRequirementNodes();
+ // register package version
+ self::$pendingPackages[$this->installation->getArchive()->getPackageInfo('name')] = $this->installation->getArchive()->getPackageInfo('version');
+
// install package itself
- $this->buildPackageNode();
+ if ($this->installation->queue->action == 'install') {
+ $this->buildPackageNode();
+ }
// package installation plugins
$this->buildPluginNodes();
// child queues
$this->buildChildQueues();
+
+ if ($this->installation->queue->action == 'update') {
+ $this->buildPackageNode();
+ }
}
/**
'requirements' => $this->requirements
))
));
-
- self::$pendingPackages[$this->installation->getArchive()->getPackageInfo('name')] = $this->installation->getArchive()->getPackageInfo('version');
}
/**
* @return string
*/
protected function buildPluginNodes() {
+ if (!empty($this->node)) {
+ $this->parentNode = $this->node;
+ $this->sequenceNo = 0;
+ }
+
+ $this->node = $this->getToken();
+
$pluginNodes = array();
$this->emptyNode = true;