From c3771a74b781e7ebc97065e8201fd3a8e45a43d1 Mon Sep 17 00:00:00 2001 From: zongyu Date: Thu, 18 Jun 2020 15:25:44 +0800 Subject: fix bugs of MAVEN_PROVIDE Signed-off-by: zongyu --- src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java b/src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java index a222956..fd9e2c4 100644 --- a/src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java +++ b/src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java @@ -358,9 +358,9 @@ public class PortageParser { cacheItems.add(new CacheItem(category, pkg, version, slot, useFlag, groupId, artifactId, mavenVersion, eclasses)); - if (mavenP != null) { + if (mavenProvide != null) { for (String providedId: mavenProvide) { - parts = mavenProvide.split(":") + final String[] parts = providedId.split(":"); cacheItems.add(new CacheItem(category, pkg, version, slot, useFlag, parts[0], parts[1], parts[2], eclasses)); } -- cgit v1.2.3-65-gdbad