From 299400c556aa117fca079ade12a5c1b78a99776c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 2 Jan 2013 19:04:43 +0100 Subject: [PATCH] Ignoring optionals if already installed Fixes #1065 --- .../package/PackageInstallationNodeBuilder.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php index 80c0606403..63da8f3226 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php @@ -1,5 +1,7 @@ installation->getArchive()->getOptionals(); foreach ($optionalPackages as $package) { + // check if already installed + if (Package::isAlreadyInstalled($package['name'])) { + continue; + } + // extract package $index = $this->installation->getArchive()->getTar()->getIndexByFilename($package['file']); if ($index === false) { -- 2.20.1