| Summary: | Cannot patch a feature you don't have installed | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Ian Bull <irbull> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | andrew.eisenberg, pascal |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Ian Bull
If you install the JDT (or include it in your plan) then things install fine. Without any digging (just speculation), I wonder if p2 is marking the 'patched feature' (the feature being patched by the feature patch) as 'non-greedy' and 'required'. This would explain why p2 won't fetch the JDT for you, but happily complain when it's not there. Does anybody know if this is the case? Is this by design? This is the desired behaviour. Patches are a mechanism to fix pre-installed things, consequently it should not try to install the things being patched. Thanks Pascal. After the discussion a few weeks ago, I meant to come back and close this. In the case of groovy, if this is a problem, the groovy core can put a dependency on the JDT itself, this will pull in the JDT and Patch it. I've tested this and it appears to work. (In reply to comment #3) > In the case of groovy, if this is a problem, the groovy core can put a > dependency on the JDT itself, this will pull in the JDT and Patch it. I've > tested this and it appears to work. That's the solution that we have. The core patch feature patches jdt.core and the groovy.core feature references jdt.core. This particular set-up has been working for us so far. There is particular reason to install the core patch without installing the rest of groovy. However, I could imagine situations where this might be necessary for patches of other features. |