From c8c279e9bace7e954a3aa3412edd833187229564 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 28 Sep 2005 15:30:50 +0000 Subject: use correct directory to list modules when called from another directory --- kernel/modules.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kernel') diff --git a/kernel/modules.pl b/kernel/modules.pl index 914cba374..68e6c4ab9 100644 --- a/kernel/modules.pl +++ b/kernel/modules.pl @@ -206,8 +206,9 @@ sub make_modules_description { } sub get_main_modules() { - my $main = chomp_(cat_('RPMS/.main')); - `tar tvf all.kernels/$main/all_modules.tar | awk '{ print \$6 }'` + my $base = dirname($0); + my $main = chomp_(cat_("$base/RPMS/.main")); + `tar tvf $base/all.kernels/$main/all_modules.tar | awk '{ print \$6 }'` } sub pci_modules4stage1 { -- cgit v1.2.1