Bug 247889

Summary: MirrorApplication does not handle "-append" arguement consistently
Product: [Eclipse Project] Equinox Reporter: Andrew Cattle <agcattle>
Component: p2Assignee: Andrew Cattle <agcattle>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dj.houghton, pascal
Version: 3.5Keywords: contributed
Target Milestone: 3.5 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Added code to handle "-append" arguement dj.houghton: iplog+

Description Andrew Cattle CLA 2008-09-18 16:23:38 EDT
The version of MirrorApplication for metadata repositories and the version for artifact repositories treat the "-append" flags inconsistently.

By default the artifact repository version will delete all preexisting artifacts before mirroring unless the "-append" argument is found.

By contrast, the metadata repository version appends the metadata by default. The metadata version doesn't even look for the "-append" argument.

See bug 247214 for more information.
Comment 1 Andrew Cattle CLA 2008-09-22 13:40:49 EDT
Created attachment 113168 [details]
Added code to handle "-append" arguement

Code is pretty much taken straight from the artifact.repository MirrorApplication.java

I ran the patch through my metadata test cases and they all passed.
Comment 2 DJ Houghton CLA 2008-09-30 11:00:10 EDT
Released to HEAD with minor changes including making the artifact repo mirroring  consistent as well.