aboutsummaryrefslogtreecommitdiffstats
path: root/find-requires.in
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-10 12:06:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-10 12:06:18 +0000
commit4593c41242663be5c93b4fe2b71b44a6e0b15864 (patch)
treea4403b6883ea02c73139e79bed5a79c9f9c74354 /find-requires.in
parent610644bb42e877e4bb4528e87d1986e1ba2fe5e3 (diff)
downloadrpm-setup-4593c41242663be5c93b4fe2b71b44a6e0b15864.tar
rpm-setup-4593c41242663be5c93b4fe2b71b44a6e0b15864.tar.gz
rpm-setup-4593c41242663be5c93b4fe2b71b44a6e0b15864.tar.bz2
rpm-setup-4593c41242663be5c93b4fe2b71b44a6e0b15864.tar.xz
rpm-setup-4593c41242663be5c93b4fe2b71b44a6e0b15864.zip
do not use buildroot since it may contain double slashes whereas filelist do not
Diffstat (limited to 'find-requires.in')
-rwxr-xr-xfind-requires.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/find-requires.in b/find-requires.in
index 0baceea..6a3c2f9 100755
--- a/find-requires.in
+++ b/find-requires.in
@@ -94,7 +94,7 @@ fi
#
# --- Perl or python deps
for f in $filelist; do
- echo $f | sed -n -e "s@$RPM_BUILD_ROOT@@" -e 's@^/usr/lib/perl5/\(site_perl/\)\([0-9]\{1,\}\.[0-9]\{1,\}\)\.\([0-9]\{1,\}\).*$@perl-base >= \2.\3@p' -e 's@^/usr/lib/perl5/\(vendor_perl\/\)\([.0-9]\{1,\}\).*$@perl-base >= 2:\2@p' -e 's@^/usr/\(lib\|lib64\)/python\([.0-9]\{1,\}\).*$@python-base >= \2@p'
+ echo $f | sed -n -e 's@.*/usr/lib/perl5/\(site_perl/\)\([0-9]\{1,\}\.[0-9]\{1,\}\)\.\([0-9]\{1,\}\).*$@perl-base >= \2.\3@p' -e 's@.*/usr/lib/perl5/\(vendor_perl\/\)\([.0-9]\{1,\}\).*$@perl-base >= 2:\2@p' -e 's@.*/usr/\(lib\|lib64\)/python\([.0-9]\{1,\}\).*$@python-base >= \2@p'
done | sort -u