commit | d6c142d4fef005ea6bd122fd7e8806e2262ca9f7 | [log] [tgz] |
---|---|---|
author | Pascal Rapicault (Ericsson) <pascal.rapicault@ericsson.com> | Thu Feb 28 16:29:41 2013 -0500 |
committer | Pascal Rapicault <pascal@rapicault.net> | Thu Feb 28 16:29:41 2013 -0500 |
tree | 7855cb54f6e4a87f44e3b83b5ebdf30f15e0a04b | |
parent | 323b7bcd64040dd1471bbc60dbe358af3136eeb1 [diff] |
Remove unnecessary constant added in M5
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java index c55f31c..331d60a 100644 --- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java +++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/SimpleProfileRegistry.java
@@ -48,6 +48,9 @@ public static final String DEFAULT_STORAGE_DIR = "profileRegistry"; //$NON-NLS-1$ private static final String DATA_EXT = ".data"; //$NON-NLS-1$ + //Internal constant used to keep track of the newly created timestamp + private static final String SERVICE_SHARED_INSTALL_NEW_TIMESTAMP = IProfileRegistry.class.getName() + '_' + "NEW_SELF_TIMESTAMP"; //$NON-NLS-1$ + protected final IProvisioningAgent agent; /** @@ -106,6 +109,8 @@ self = context.getProperty("eclipse.p2.profile"); //$NON-NLS-1$ } } + if (self == null) + self = (String) agent.getService("FORCED_SELF"); context.ungetService(ref); }
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/IProfileRegistry.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/IProfileRegistry.java index b2490c8..e93a856 100644 --- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/IProfileRegistry.java +++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/IProfileRegistry.java
@@ -38,8 +38,6 @@ */ public static final String SERVICE_NAME = IProfileRegistry.class.getName(); - public static final String SERVICE_SHARED_INSTALL_NEW_TIMESTAMP = IProfileRegistry.class.getName() + '_' + "NEW_SELF_TIMESTAMP"; //$NON-NLS-1$ - /** * Return the profile in the registry that has the given id. If it does not exist, * then return <code>null</code>.