commit f1440c791d8f2acb2906574b013cc3377228ddae
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Mon Mar 4 13:52:18 2013 +0100
Don't create OSGi auto-requires on system.bundle
If a bundle requires system.bundle - either Eclipse or OSGi is
installed. This should not be the case, as system.bundle is a valid
requirement if and only if the OSGi environment is present. If someone
wants to use a bundle without OSGi - he's welcome to do so.
depgenerators/osgi.req | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/depgenerators/osgi.req b/depgenerators/osgi.req
index 602989c..be10cb1 100755
--- a/depgenerators/osgi.req
+++ b/depgenerators/osgi.req
@@ -93,7 +93,8 @@ class TagBuilder:
headers = self.parse_manifest(manifest)
if headers.get("Require-Bundle"):
for bundle in
self.split_bundle_name(headers.get("Require-Bundle")):
- print "osgi(%s)" %(bundle)
+ if bundle != "system.bundle":
+ print "osgi(%s)" %(bundle)
if __name__ == "__main__":
builder = TagBuilder ()
Show replies by date