Skip to content

Commit 67802f7

Browse files
committed
allow hooks in mixed packages
1 parent 87b6c42 commit 67802f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/biz/netcentric/filevault/validator/aem/cloud/AemCloudValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static boolean isPackagePathInstalledConditionally(String runMode, Path packageR
184184
// is it install hook?
185185
if (filePath.startsWith(INSTALL_HOOK_PATH) && filePath.toString().endsWith(".jar")) {
186186
// is it mutable content package?
187-
if (PackageType.CONTENT.equals(packageType) || PackageType.MIXED.equals(packageType)) {
187+
if (PackageType.CONTENT.equals(packageType)) {
188188
return Collections.singleton(new ValidationMessage(defaultSeverity, VIOLATION_MESSAGE_INSTALL_HOOK_IN_MUTABLE_PACKAGE));
189189
} else if (packageType == null) {
190190
// defer checking until one is sure that the package has mutable content
@@ -217,7 +217,7 @@ static boolean isPackagePathInstalledConditionally(String runMode, Path packageR
217217
@Override
218218
public @Nullable Collection<ValidationMessage> validate(@NotNull PackageProperties properties) {
219219
if (!properties.getExternalHooks().isEmpty()) {
220-
if (PackageType.CONTENT.equals(packageType) || PackageType.MIXED.equals(packageType)) {
220+
if (PackageType.CONTENT.equals(packageType)) {
221221
return Collections.singleton(new ValidationMessage(defaultSeverity, VIOLATION_MESSAGE_INSTALL_HOOK_IN_MUTABLE_PACKAGE));
222222
}
223223
}

0 commit comments

Comments
 (0)