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:37:13 UTC

[sling-org-apache-sling-feature-cpconverter] branch master updated: SLING-10403: remove package dependencies key if we don't have any dependencies. (#84)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 55a3c1e  SLING-10403: remove package dependencies key if we don't have any dependencies. (#84)
55a3c1e is described below

commit 55a3c1ec4047772c738839951b0455cc16f046d4
Author: Karl Pauls <pa...@apache.org>
AuthorDate: Thu May 20 10:37:04 2021 +0200

    SLING-10403: remove package dependencies key if we don't have any dependencies. (#84)
---
 .../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;
         }