Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Merks2020-10-27 04:55:08 +0000
committerEd Merks2020-10-27 04:55:08 +0000
commit44d1d31f59046d9914537b2dad9aa3f3fd4ec6e4 (patch)
tree41b615adb934528bf97563fc6784450ecb379a71
parentef659eea84361f8b3d4a385db7dc05e5ab38954d (diff)
downloadjustj.tools-44d1d31f59046d9914537b2dad9aa3f3fd4ec6e4.tar.gz
justj.tools-44d1d31f59046d9914537b2dad9aa3f3fd4ec6e4.tar.xz
justj.tools-44d1d31f59046d9914537b2dad9aa3f3fd4ec6e4.zip
Bug 566640 - Add support for Linux AArch64
Generate better update site details for a negative requirement.
-rw-r--r--plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java27
1 files changed, 21 insertions, 6 deletions
diff --git a/plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java b/plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java
index 5938916..dd49c76 100644
--- a/plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java
+++ b/plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java
@@ -1476,10 +1476,17 @@ public class UpdateSiteGenerator
if (requiredCapability.getMin() == 0)
{
- line += " optional";
- if (requiredCapability.isGreedy())
+ if (requiredCapability.getMax() == 0)
{
- line += " greedy";
+ line += " max=0";
+ }
+ else
+ {
+ line += " optional";
+ if (requiredCapability.isGreedy())
+ {
+ line += " greedy";
+ }
}
}
@@ -1604,12 +1611,20 @@ public class UpdateSiteGenerator
if (requiredCapability.getMin() == 0)
{
- line += " optional";
- if (requiredCapability.isGreedy())
+ if (requiredCapability.getMax() == 0)
{
- line += " greedy";
+ line += " max=0";
+ }
+ else
+ {
+ line += " optional";
+ if (requiredCapability.isGreedy())
+ {
+ line += " greedy";
+ }
}
}
+
line += "</span>";
lines.add(line);

Back to the top