diff options
Diffstat (limited to 'find-requires.in')
-rwxr-xr-x | find-requires.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/find-requires.in b/find-requires.in index b154c8d..751e8b1 100755 --- a/find-requires.in +++ b/find-requires.in @@ -179,8 +179,14 @@ fi # # --- Perl modules. +perlmymeta=$( echo $filelist | tr '[:blank:]' \\n | egrep 'doc/[^/]+/MYMETA.(yml|json)$' | head -1 ) perlmeta=$( echo $filelist | tr '[:blank:]' \\n | egrep 'doc/[^/]+/META.(yml|json)$' | head -1 ) -if [ -n "$perlmeta" ] +if [ -n "$perlmymeta" ] +then + [ -x @RPMVENDORDIR@/perl.req-from-meta ] && \ + @RPMVENDORDIR@/perl.req-from-meta $perlmymeta \ + && test ${PIPESTATUS[0]} -ne 0 && echo 'error: @RPMVENDORDIR@/perl.req-from-meta failed' >&2 && exit 1 +elif [ -n "$perlmeta" ] then [ -x @RPMVENDORDIR@/perl.req-from-meta ] && \ @RPMVENDORDIR@/perl.req-from-meta $perlmeta \ |