diff options
Diffstat (limited to 'find-provides.in')
-rwxr-xr-x | find-provides.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/find-provides.in b/find-provides.in index 0ef9b15..a52a234 100755 --- a/find-provides.in +++ b/find-provides.in @@ -10,6 +10,7 @@ solist=$(echo "$filelist" | egrep -v "^/lib/ld\.so|/usr/lib(64)?/gcj/" | egrep ' pythonlist= tcllist= rubygemlist=$(echo "$filelist"| egrep "\.gemspec$") +mavenlist=$(echo "$filelist" |egrep '/usr/share/maven-poms/.*\.pom') # # --- Alpha does not mark 64bit dependencies @@ -153,8 +154,10 @@ fi # # --- maven provides if [ -x @RPMLIBDIR@/maven.prov ];then - echo $filelist | tr '[:blank:]' '\n' | @RPMLIBDIR@/maven.prov \ - && test ${PIPESTATUS[2]} -ne 0 && echo 'error: @RPMLIBDIR@/maven.prov failed' >&2 && exit 1 + if [ ! -z $mavenlist ]; then + echo $mavenlist | tr '[:blank:]' '\n' | @RPMLIBDIR@/maven.prov \ + && test ${PIPESTATUS[2]} -ne 0 && echo 'error: @RPMLIBDIR@/maven.prov failed' >&2 && exit 1 + fi fi exit 0 |