diff options
author | Jerome Quelin <jquelin@mageia.org> | 2011-11-08 12:57:10 +0000 |
---|---|---|
committer | Jerome Quelin <jquelin@mageia.org> | 2011-11-08 12:57:10 +0000 |
commit | 82ae6537a1df1ad2523d59cfb12f97afc990849e (patch) | |
tree | 34162937d3872efa2a40f9c82885b415f3e95827 /find-requires.in | |
parent | 1f01b3be4afde5ba5c857f60664bad64e29168c3 (diff) | |
download | rpm-setup-82ae6537a1df1ad2523d59cfb12f97afc990849e.tar rpm-setup-82ae6537a1df1ad2523d59cfb12f97afc990849e.tar.gz rpm-setup-82ae6537a1df1ad2523d59cfb12f97afc990849e.tar.bz2 rpm-setup-82ae6537a1df1ad2523d59cfb12f97afc990849e.tar.xz rpm-setup-82ae6537a1df1ad2523d59cfb12f97afc990849e.zip |
v1.145 - extract perl requires from MYMETA.yml / MYMETA.json when present1.145
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 \ |