equal
deleted
inserted
replaced
617 public void verifyIsOfType(Collection<PackageType> types) { |
617 public void verifyIsOfType(Collection<PackageType> types) { |
618 verifyIsOfType(types.toArray(PackageType[]::new)); |
618 verifyIsOfType(types.toArray(PackageType[]::new)); |
619 } |
619 } |
620 |
620 |
621 public void verifyIsOfType(PackageType ... types) { |
621 public void verifyIsOfType(PackageType ... types) { |
622 final Set<PackageType> typesSet = Set.of(types); |
622 final var typesSet = Stream.of(types).collect(Collectors.toSet()); |
623 if (!hasArgument("--package-type")) { |
623 if (!hasArgument("--package-type")) { |
624 if (!isImagePackageType()) { |
624 if (!isImagePackageType()) { |
625 if (TKit.isLinux() && typesSet.equals(PackageType.LINUX)) { |
625 if (TKit.isLinux() && typesSet.equals(PackageType.LINUX)) { |
626 return; |
626 return; |
627 } |
627 } |