From 46c3fa77578d3a00679da949fd7b1157d2846547 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 3 Feb 2003 11:36:55 +0000 Subject: use run_program::get_stdout --- perl-install/modules/parameters.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install') diff --git a/perl-install/modules/parameters.pm b/perl-install/modules/parameters.pm index c3b4fb2b6..f480ca31a 100644 --- a/perl-install/modules/parameters.pm +++ b/perl-install/modules/parameters.pm @@ -13,15 +13,13 @@ use modules; sub parameters { my ($module) = @_; - my $modinfo = find { -x $_ } qw(/sbin/modiInfo /usr/bin/modinfo) or die N("modinfo is not available"); - if (!$::isStandalone && !$::testing) { modules::extract_modules('/tmp', $module); $module = "/tmp/$module.o"; } my @parameters; - foreach (common::join_lines(`$modinfo -p $module`)) { + foreach (common::join_lines(run_program::get_stdout('modinfo', '-p', $module))) { chomp; next if /^warning:/; (my $name, $_) = /(\S+)\s+(.*)/s or warn "modules::parameters::get_options_name($module): unknown line\n"; -- cgit v1.2.1