Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CA7B720049B for ; Mon, 14 Aug 2017 10:36:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C8D18163B97; Mon, 14 Aug 2017 08:36:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C26A7163B94 for ; Mon, 14 Aug 2017 10:36:53 +0200 (CEST) Received: (qmail 41697 invoked by uid 500); 14 Aug 2017 08:36:52 -0000 Mailing-List: contact commits-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list commits@karaf.apache.org Received: (qmail 41580 invoked by uid 99); 14 Aug 2017 08:36:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2017 08:36:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B3231F329A; Mon, 14 Aug 2017 08:36:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cschneider@apache.org To: commits@karaf.apache.org Date: Mon, 14 Aug 2017 08:36:54 -0000 Message-Id: <8cb3154272b6474f8e981a2b933962d1@git.apache.org> In-Reply-To: <29ba8fb0f0b34950ae9274342c484e95@git.apache.org> References: <29ba8fb0f0b34950ae9274342c484e95@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [4/5] karaf git commit: [KARAF-5300] Split install into add and upgrade archived-at: Mon, 14 Aug 2017 08:36:55 -0000 [KARAF-5300] Split install into add and upgrade Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/d9ab1abd Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/d9ab1abd Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/d9ab1abd Branch: refs/heads/master Commit: d9ab1abdd248696e8650958707ace1b09344f735 Parents: 043ef71 Author: Christian Schneider Authored: Thu Aug 10 11:23:10 2017 +0200 Committer: Christian Schneider Committed: Mon Aug 14 09:53:39 2017 +0200 ---------------------------------------------------------------------- .../internal/service/FeaturesServiceImpl.java | 114 +++++++++---------- 1 file changed, 55 insertions(+), 59 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/d9ab1abd/features/core/src/main/java/org/apache/karaf/features/internal/service/FeaturesServiceImpl.java ---------------------------------------------------------------------- diff --git a/features/core/src/main/java/org/apache/karaf/features/internal/service/FeaturesServiceImpl.java b/features/core/src/main/java/org/apache/karaf/features/internal/service/FeaturesServiceImpl.java index e44db6e..2518a09 100644 --- a/features/core/src/main/java/org/apache/karaf/features/internal/service/FeaturesServiceImpl.java +++ b/features/core/src/main/java/org/apache/karaf/features/internal/service/FeaturesServiceImpl.java @@ -83,6 +83,8 @@ import org.osgi.service.resolver.Resolver; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import static java.util.Collections.emptyMap; +import static java.util.stream.Collectors.toSet; import static org.apache.karaf.features.internal.service.StateStorage.toStringStringSetMap; import static org.apache.karaf.features.internal.util.MapUtils.add; import static org.apache.karaf.features.internal.util.MapUtils.copy; @@ -786,28 +788,39 @@ public class FeaturesServiceImpl implements FeaturesService, Deployer.DeployCall @Override public void installFeatures(Set featuresIn, String region, EnumSet