[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Spoofing P2 profile in shared installations

Hello P2 developers,

I am trying to come up with a proof of concept that will:
(a) assemble shared Eclipse installation from RPMs
(b) have working P2 for regular users.

a is easy, b is not, but to get it working I'm trying to apply the
approach described in
http://git.eclipse.org/c/equinox/rt.equinox.incubator.git/tree/p2/bundles/org.eclipse.equinox.p2.afterthefact/src/org/eclipse/equinox/internal/p2/afterthefact/Install.java

So, first of all, I have modified the SimpleProfileRegistry#getProfile
and forced it to create a fake profile from the list of installed
bundles each time when no profile is found (http://fpaste.org/C2Gg/).

It worked to some extend - a profile in the user configuration is
written down properly, but the bundles.info (actually the whole
simpleconfigurator folder) is missing.

So it looks like I am able to fake profiles, but without a true
connection to the OSGI.

My question is: what have I actually missed? How can I make P2 to
actually use this new profile and write down the bundles.info in the
user home directory?

Kind regards,
-- 
Krzysztof Daniel <kdaniel@xxxxxxxxxx>
Red Hat