diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-08 17:21:35 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-12 22:26:14 +0200 |
commit | 986531bbeb989ec830b07bd661ffd29ba844e736 (patch) | |
tree | 3ee2652cbc0be982d6d5e52773bb3a3becb3ba73 /find-requires.in | |
parent | c16f6a7e4bcb99c172f46c292bad94e6edcff039 (diff) | |
download | rpm-setup-986531bbeb989ec830b07bd661ffd29ba844e736.tar rpm-setup-986531bbeb989ec830b07bd661ffd29ba844e736.tar.gz rpm-setup-986531bbeb989ec830b07bd661ffd29ba844e736.tar.bz2 rpm-setup-986531bbeb989ec830b07bd661ffd29ba844e736.tar.xz rpm-setup-986531bbeb989ec830b07bd661ffd29ba844e736.zip |
convert perl-base to internal generator
we also patch rpm's script.req for outputing perl-base instead of
/usr/bin/perl
Diffstat (limited to 'find-requires.in')
-rwxr-xr-x | find-requires.in | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/find-requires.in b/find-requires.in index bc69f0c..ab365a5 100755 --- a/find-requires.in +++ b/find-requires.in @@ -100,24 +100,6 @@ if [ "$needed" -eq 0 ]; then fi # -# --- Perl or python deps -perlepoch=`rpm -q --qf '%|EPOCH?{[%{EPOCH}]:}|' perl-base` -if [ $? != 0 ]; then - unset perlepoch -fi - -tmpdeplist= -for f in $filelist; do - dep="`echo $f | sed -n -e "s@.*/usr/lib/perl5/\(vendor_perl/\|site_perl/\|\)\([.0-9]\{1,\}\).*\\$@perl-base >= $perlepoch\2@p"`" - if [[ -n $dep && -z `echo $uniqdeplist $tmpdeplist|grep "$dep"` ]]; then - tmpdeplist+="$dep\n" - fi -done -echo -n -e $tmpdeplist | sort -u -uniqdeplist+="$tmpdeplist" - - -# # --- Script interpreters. for f in $scriptlist; do [ -r $f -a -x $f ] || continue |