Skip to content

Commit

Permalink
Improve patterns for matching OSGi manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdebsk committed Nov 20, 2014
1 parent 5039d20 commit 4bdba50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion depgenerators/fileattrs/osgi.attr
Expand Up @@ -2,4 +2,4 @@
%__osgi_provides_opts %{_builddir}/%{?buildsubdir}
%__osgi_requires %{_rpmconfigdir}/osgi.req
%__osgi_requires_opts %{_builddir}/%{?buildsubdir}
%__osgi_path ^(.*\\.jar$|((%{_prefix}/lib|%{_datadir})/.*/MANIFEST.MF))
%__osgi_path ^(.*\\.jar|((%{_prefix}/lib|%{_datadir})/.*/META-INF/MANIFEST.MF))$
2 changes: 1 addition & 1 deletion python/javapackages/common/osgi.py
Expand Up @@ -93,7 +93,7 @@ def split_bundle_name(bundles):

def open_manifest(path):
mf = None
if path.endswith("META-INF/MANIFEST.MF"):
if path.endswith("/META-INF/MANIFEST.MF"):
mf = open(path, "rb")
if zipfile.is_zipfile(path):
# looks like "zipfile.is_zipfile()" is not reliable
Expand Down

0 comments on commit 4bdba50

Please sign in to comment.