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

Bug 360474

Summary: mirror goal fails when a bundle "already exists in repository"
Product: z_Archived Reporter: Eric Jain <eric.jain>
Component: TychoAssignee: Jan Sievers <jan.sievers>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan.sievers, reschifl
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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)