You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by pa...@apache.org on 2021/05/20 08:16:25 UTC

[sling-org-apache-sling-feature-cpconverter] 01/01: SLING-10403: remove package dependencies key if we don't have any dependencies.

This is an automated email from the ASF dual-hosted git repository.

pauls pushed a commit to branch issues/SLING-10403
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git

commit ed5d457e01d639ea36efa0cc26da9c71c23b5b18
Author: Karl Pauls <ka...@gmail.com>
AuthorDate: Thu May 20 10:16:07 2021 +0200

    SLING-10403: remove package dependencies key if we don't have any dependencies.
---
 .../org/apache/sling/feature/cpconverter/vltpkg/VaultPackageUtils.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/sling/feature/cpconverter/vltpkg/VaultPackageUtils.java b/src/main/java/org/apache/sling/feature/cpconverter/vltpkg/VaultPackageUtils.java
index d5aea4b..fc35748 100644
--- a/src/main/java/org/apache/sling/feature/cpconverter/vltpkg/VaultPackageUtils.java
+++ b/src/main/java/org/apache/sling/feature/cpconverter/vltpkg/VaultPackageUtils.java
@@ -90,6 +90,7 @@ public class VaultPackageUtils {
 
     public static void setDependencies(@Nullable Set<Dependency> dependencies, @NotNull Properties properties) {
         if (dependencies == null || dependencies.isEmpty()) {
+            properties.remove(PackageProperties.NAME_DEPENDENCIES);
             return;
         }