Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342879

Summary: composite children prevent explicit repo addition
Product: [Eclipse Project] Equinox Reporter: Jeff McAffer <jeffmcaffer>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: pascal, scastrianni
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Jeff McAffer CLA 2011-04-14 14:49:41 EDT
if you add a composite repo that has children (say A and B) then users are not able to explicitly add A or B to the list of repos.  The UI reports "duplicate location" errors.  However, A and B are marked as "system" so they are not shown in the UI.  From the users point of view they can't add the repo and cannot pick it so as to choose contents from it.

On the one hand this is cool since we don't want people seeing the things under composites but on the other, a random person can create a composite that happens to include repo A and, depending on the order of addtion, effectively prevent users from seeing repo A.

one possibility is a tweak to the UI such that when a user goes to add a repo and it is already there but "system" then simply "add" it by making it non-system.  Care would need to be taken such that if the users subsequently removed the repo it would be "re-added" as a system repo in its role as a child of some composite.
Comment 1 DJ Houghton CLA 2011-04-14 14:51:47 EDT

*** This bug has been marked as a duplicate of bug 338495 ***