ctron / package-drone

An OSGI first software artifact repository – Moved to the Eclipse Foundation
https://github.com/eclipse/packagedrone
Eclipse Public License 1.0
39 stars 13 forks source link

OSGi R5 aspect does not list "bundle-version" and resolution optional for "osgi.wiring.bundle" requirements #131

Closed JFingerle closed 9 years ago

JFingerle commented 9 years ago

A bundle has the following section in its manifest

Require-Bundle: org.eclipse.persistence.asm;bundle-version="5.0.1"
 ;resolution:=optional

The OBR R5 index should contain the following section for this bundle

<requirement namespace="osgi.wiring.bundle">
   <directive name="filter" value="(&(osgi.wiring.bundle=org.eclipse.persistence.asm)(bundle-version>=5.0.1))"/>
   <directive name="resolution" value="optional"/>
</requirement>

The OBR R5 index created by Package Drone (0.10.3) is missing the bundle version and the resolution directive:

<requirement namespace="osgi.wiring.bundle">
   <directive name="filter" value="(osgi.wiring.bundle=org.eclipse.persistence.asm)"/>
</requirement>
JFingerle commented 9 years ago

I fixed this on master (ac70571) and 0.10.x.-release (e19ee75).