Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360474 - mirror goal fails when a bundle "already exists in repository"
Summary: mirror goal fails when a bundle "already exists in repository"
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jan Sievers CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 13:30 EDT by Eric Jain CLA
Modified: 2021-04-28 16:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Jain CLA 2011-10-10 13:30:47 EDT
Build Identifier: 0.13.0

If I run the mirror goal with append=true and a IU that is being added
includes a bundle that already exists in the repository, the build
fails with an error like:

 Artifact: packed:
osgi.bundle,org.eclipse.osgi.services,3.3.0.v20110513 already exists
in repository: file:/p2/target/repository/."

Should just log a warning instead?

Reproducible: Always
Comment 1 Jan Sievers CLA 2011-11-16 11:44:33 EST
I checked the tycho code and and we need to do is correctly check the IStatus returned by p2.

Instead of !IStatus.isOK() we should probably be using IStatus.matches(IStatus.ERROR)