Bug 264891 - org.eclipse.equinox.p2.metadata.repository MirrorApplication fails if artifacts have already been mirrored
Summary: org.eclipse.equinox.p2.metadata.repository MirrorApplication fails if artifac...
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M6   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 248951
Blocks:
  Show dependency tree
 
Reported: 2009-02-13 14:11 EST by Kim Moir CLA
Modified: 2009-02-18 18:46 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Moir CLA 2009-02-13 14:11:12 EST
I recently changed my build scripts to mirror artifacts from the repo to the child  repository instead of just copying them.  This ensure that the bundles included in the are consistent across the repos.  Currently, it works like this

<p2.metadata.mirror source="file:${repo}" writeMode="append" destination="file:${buildRepo}" />
<p2.artifact.mirror source="file:${repo}" baseline="file:${updateSite}" destination="file:${buildRepo}" />

However, if I reverse the calls to the ant tasks so the artifacts are mirrored before the metadata, the p2.metadata.mirror task fails with "Metadata repository not modifiable".  This is strange since there isn't a content.jar in the repo when this occurs.

<p2.artifact.mirror source="file:${repo}" baseline="file:${updateSite}" destination="file:${buildRepo}" />
<p2.metadata.mirror source="file:${repo}" writeMode="append" destination="file:${buildRepo}" />
Comment 1 Andrew Niefer CLA 2009-02-18 18:46:11 EST
fixed by asking for a modifiable repo