aboutsummaryrefslogtreecommitdiffstats
path: root/find-requires.in
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-09-08 17:21:35 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-09-12 22:26:14 +0200
commit986531bbeb989ec830b07bd661ffd29ba844e736 (patch)
tree3ee2652cbc0be982d6d5e52773bb3a3becb3ba73 /find-requires.in
parentc16f6a7e4bcb99c172f46c292bad94e6edcff039 (diff)
downloadrpm-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-xfind-requires.in18
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