Bug 227372 - Make Collect phase context aware
Summary: Make Collect phase context aware
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Pascal Rapicault CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-04-16 12:11 EDT by Simon Kaegi CLA
Modified: 2008-04-28 21:42 EDT (History)
1 user (show)

See Also:


Attachments
Patch to make use ProvisionContext in collect phase (8.23 KB, patch)
2008-04-16 12:14 EDT, Helmut J. Haigermoser CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Kaegi CLA 2008-04-16 12:11:21 EDT
We're currently not looking at the Provisioningcontext to find additional Artifact Repositories in the same way we look for Metadata repositories. We should look at adding this.
--
From the newsgroup:
Helmut Haigermoser writes...
I stumbled over the following: When trying to use a specific set of
repositories instead of all the registered onces I tried using a
ProvisionContext with a defined set of URLs containing meta- and
artifact repositories. This worked fine with metadata. :)
However, during installation the artifacts referenced by the metadata
could not be found, looks like the context only includes metadata, not
artifact repositories. I ended up registering my artifact repo to the
manager but that way all registered repos were considered during the
operation in contrast to the limited set I would have wanted to use.
--
Comment 1 Helmut J. Haigermoser CLA 2008-04-16 12:14:41 EDT
Created attachment 96279 [details]
Patch to make use ProvisionContext in collect phase
Comment 2 Pascal Rapicault CLA 2008-04-16 16:47:38 EDT
I quickly went through the patch and it looks good and fairly straightforward.
For consistency could you also add this support to the sizing phase?
Also could try to provide a few simple test cases. Thx.
Comment 3 Pascal Rapicault CLA 2008-04-28 21:42:38 EDT
Patch released in HEAD with some minor tweak and support for filtering the sizing phase as well.