Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Fixing optimization function

I am implementing software installer which is based on p2.
The problem is it has to be ultra conservative and looks like
I need to fix the current optimization function.

The was discussion about optimization function keeping installed items
if possible https://bugs.eclipse.org/bugs/show_bug.cgi?id=259537
but it ended up with in between approach which used transitive close, what
it does it actually ignores installed units if they are requires by something
else unless they are roots.

Example I have two units a and b, and b requires a (unversioned)
I have installed a-1 and b-1 (1 is version) (and group of a and b is the root).
Now I want to install b-2, so I should be able to just install b-2 and not a-2.
But currently it won't let me. It will attempt to pull a-2 as well.

I don't want to mark a-1 as root, but the only other way is to fix
optimization function,
but its in few layers in private function in Projector. Am I missing
something? Is there
any way to override it?


Back to the top