From e8bc5b1c92bfca4c9442992edf8a72759c01968e Mon Sep 17 00:00:00 2001 From: Markus Knauer Date: Mon, 28 Mar 2016 15:23:29 +0200 Subject: Prevent upgrade from old to new EPP package layout Bug 490515 - Prevent upgrade from old to new EPP package layout https://bugs.eclipse.org/bugs/show_bug.cgi?id=490515 With Eclipse Neon (4.6) all packages changed their structure from a single feature to a product with multiple independent root features. Upgrades from older versions to the new structure would result in an unexpected uninstall of everything below the old main package feature. In order to prevent such upgrades we add an artificial lower limit of the IU to the p2 metadata. Change-Id: I2bc3b7bb559d203e5ceadc1c97b9ec6739effd2c Signed-off-by: Markus Knauer --- packages/org.eclipse.epp.package.modeling.feature/p2.inf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'packages/org.eclipse.epp.package.modeling.feature/p2.inf') diff --git a/packages/org.eclipse.epp.package.modeling.feature/p2.inf b/packages/org.eclipse.epp.package.modeling.feature/p2.inf index 0f1be63b..239ceafe 100644 --- a/packages/org.eclipse.epp.package.modeling.feature/p2.inf +++ b/packages/org.eclipse.epp.package.modeling.feature/p2.inf @@ -6,6 +6,20 @@ requires.1.namespace=org.eclipse.equinox.p2.iu requires.1.name=org.eclipse.platform.ide requires.1.greedy=true +# Bug 490515 - Prevent upgrade from old to new EPP package layout +# https://bugs.eclipse.org/bugs/show_bug.cgi?id=490515 +# +# With Eclipse Neon (4.6.0) all packages changed their structure from a single +# feature to a product with multiple independent root features. Upgrades from +# older versions to the new structure would result in an unexpected uninstall +# of everything below the old main package feature. In order to prevent such +# upgrades we add an artificial lower limit of the IU to the p2 metadata. + +update.id = org.eclipse.epp.package.modeling.feature.feature.group +update.range = [4.6.0.20160301-1200, $version$) +update.severity = 0 +update.description = Eclipse package upgrade from versions before Eclipse Neon (4.6) is not possible. See bug 332989. + instructions.configure=\ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(type:0,location:http${#58}//www.eclipse.org/modeling/amalgam/downloads/package/modeling/neon/,name:Modeling Package Updates for Eclipse Neon);\ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(type:1,location:http${#58}//www.eclipse.org/modeling/amalgam/downloads/package/modeling/neon/,name:Modeling Package Updates for Eclipse Neon); -- cgit v1.2.3