aboutsummaryrefslogtreecommitdiffstats
path: root/find-provides.in
diff options
context:
space:
mode:
Diffstat (limited to 'find-provides.in')
-rwxr-xr-xfind-provides.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/find-provides.in b/find-provides.in
index a52a234..be99d57 100755
--- a/find-provides.in
+++ b/find-provides.in
@@ -11,6 +11,7 @@ pythonlist=
tcllist=
rubygemlist=$(echo "$filelist"| egrep "\.gemspec$")
mavenlist=$(echo "$filelist" |egrep '/usr/share/maven-poms/.*\.pom')
+osgilist=$(echo "$filelist" |egrep "^(.*\.jar|((/usr/lib(64)|/usr/share).*/MANIFEST.MF))")
#
# --- Alpha does not mark 64bit dependencies
@@ -147,8 +148,10 @@ fi
#
# --- osgi provides
if [ -x @RPMLIBDIR@/osgi.prov ];then
- echo $filelist | tr '[:blank:]' '\n' | @RPMLIBDIR@/osgi.prov \
- && test ${PIPESTATUS[2]} -ne 0 && echo 'error: @RPMLIBDIR@/osgi.prov failed' >&2 && exit 1
+ if [ ! -z $osgilist ]; then
+ echo $osgilist | tr '[:blank:]' '\n' | @RPMLIBDIR@/osgi.prov \
+ && test ${PIPESTATUS[2]} -ne 0 && echo 'error: @RPMLIBDIR@/osgi.prov failed' >&2 && exit 1
+ fi
fi
#