e6112c26c7
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/eclipse.git#c21212b002b4e7a2ff68dde825f2e885df0dd979
48 lines
2.1 KiB
Diff
48 lines
2.1 KiB
Diff
From decc6ec5f3c5ce87fa50c2cfe932d66e89496810 Mon Sep 17 00:00:00 2001
|
|
From: Roland Grunberg <rgrunber@redhat.com>
|
|
Date: Wed, 3 Aug 2016 14:57:10 -0400
|
|
Subject: [PATCH] p2 Droplets should be recognized as runnable repositories.
|
|
|
|
Normally, a runnable repository is identified by the 'p2.runnable'
|
|
property contained within the artifact repository (artifact.xml).
|
|
However, in Fedora we ship p2 Droplets without this file so we need a
|
|
way to let methods like getRunnableRepositories in
|
|
o.e.equinox.internal.p2.touchpoint.eclipse.Util know that p2 Droplets
|
|
are runnable repositories.
|
|
|
|
Change-Id: I0ad0a7557f998b4d032466f89e6cc76036d1fb38
|
|
---
|
|
.../ExtensionLocationArtifactRepository.java | 16 ++++++++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
diff --git rt.equinox.p2/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java rt.equinox.p2/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java
|
|
index 342e33e..425a166 100644
|
|
--- rt.equinox.p2/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java
|
|
+++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java
|
|
@@ -284,6 +284,22 @@ public class ExtensionLocationArtifactRepository extends AbstractRepository<IArt
|
|
return artifactRepository.getProperties();
|
|
}
|
|
|
|
+ public String getProperty(String key) {
|
|
+ if (IArtifactRepository.PROP_RUNNABLE.equals(key)) {
|
|
+ String candidate = getLocation().getPath();
|
|
+ String fragments = System.getProperty("p2.fragments");
|
|
+ if (fragments != null) {
|
|
+ String[] rootPaths = fragments.split(",");
|
|
+ for (String root : rootPaths) {
|
|
+ if (candidate.startsWith(root)) {
|
|
+ return Boolean.TRUE.toString();
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ return super.getProperty(key);
|
|
+ }
|
|
+
|
|
@Override
|
|
public String setProperty(String key, String value, IProgressMonitor monitor) {
|
|
try {
|
|
--
|
|
2.7.4
|
|
|