From bce744662d3e92cbe8a698ca7ab509c493d74e67 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 7 May 2014 02:16:26 +0200 Subject: [PATCH] Fix for optional packages disregarding excluded packages --- .../package/PackageInstallationNodeBuilder.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php index 59391c9064..c75934903c 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php @@ -669,6 +669,17 @@ class PackageInstallationNodeBuilder { } } + // check for exclusions + $excludedPackages = $archive->getConflictedExcludedPackages(); + if (!empty($excludedPackages)) { + $isInstallable = false; + } + + $excludingPackages = $archive->getConflictedExcludingPackages(); + if (!empty($excludingPackages)) { + $isInstallable = false; + } + $packages[] = array( 'archive' => $fileName, 'isInstallable' => $isInstallable, -- 2.20.1