aboutsummaryrefslogtreecommitdiffstats
path: root/perl_base.req
diff options
context:
space:
mode:
Diffstat (limited to 'perl_base.req')
-rw-r--r--perl_base.req16
1 files changed, 3 insertions, 13 deletions
diff --git a/perl_base.req b/perl_base.req
index eb95024..aaf2110 100644
--- a/perl_base.req
+++ b/perl_base.req
@@ -1,18 +1,8 @@
#!/bin/sh
# Requires on perl-base
-perlepoch=`rpm -q --qf '%|EPOCH?{[%{EPOCH}]:}|' perl-base`
-if [ $? != 0 ]; then
- unset perlepoch
+perlEV=`rpm -q --qf '%{EPOCH}:%{VERSION}\n' perl-base`
+if [ $? = 0 ]; then
+ echo "perl-base >= $perlEV"
fi
-tmpdeplist=
-
-while read instfile ; do
- dep="`echo $instfile | 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