Fixed issue discovered during MISC 2011 about the sum() feature (need
to check that the property is really terminated by :, else there is an
issue if two properties start with the same name).
diff --git a/org.eclipse.equinox.p2.cudf/src/main/java/org/eclipse/equinox/p2/cudf/Parser.java b/org.eclipse.equinox.p2.cudf/src/main/java/org/eclipse/equinox/p2/cudf/Parser.java
index ae51245..fecac76 100644
--- a/org.eclipse.equinox.p2.cudf/src/main/java/org/eclipse/equinox/p2/cudf/Parser.java
+++ b/org.eclipse.equinox.p2.cudf/src/main/java/org/eclipse/equinox/p2/cudf/Parser.java
@@ -129,7 +129,7 @@
handleRecommends(line);
} else if (line.startsWith("keep: ")) {
handleKeep(line);
- } else if (sumProperty != null && line.startsWith(sumProperty)) {
+ } else if (sumProperty != null && line.startsWith(sumProperty + ":")) {
handleSumProperty(line, sumProperty);
}
}