Properly validate if requirement is already met
authorAlexander Ebert <ebert@woltlab.com>
Sat, 5 Nov 2011 01:27:27 +0000 (02:27 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 5 Nov 2011 01:27:27 +0000 (02:27 +0100)
wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php

index fcf72c44e71f3e582355db725614e7c142925e4b..954dfdb96bbb3bcf525a5784743e7cc187ad430a 100644 (file)
@@ -389,7 +389,8 @@ class PackageInstallationNodeBuilder {
                $packageNodes = array();
                $queue = $this->installation->queue;
                
-               $requiredPackages = $this->installation->getArchive()->getRequirements();
+               // handle requirements
+               $requiredPackages = $this->installation->getArchive()->getOpenRequirements();
                foreach ($requiredPackages as $packageName => $package) {
                        if (!isset($package['file'])) {
                                // ignore requirements which are not to be installed