diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-02-03 11:36:55 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-02-03 11:36:55 +0000 |
commit | 46c3fa77578d3a00679da949fd7b1157d2846547 (patch) | |
tree | c4e4480e90ee1a1b1ad72002240625ec8b74fecf | |
parent | 91d6b463a601d9030911e221b6fc75bd0d105417 (diff) | |
download | drakx-backup-do-not-use-46c3fa77578d3a00679da949fd7b1157d2846547.tar drakx-backup-do-not-use-46c3fa77578d3a00679da949fd7b1157d2846547.tar.gz drakx-backup-do-not-use-46c3fa77578d3a00679da949fd7b1157d2846547.tar.bz2 drakx-backup-do-not-use-46c3fa77578d3a00679da949fd7b1157d2846547.tar.xz drakx-backup-do-not-use-46c3fa77578d3a00679da949fd7b1157d2846547.zip |
use run_program::get_stdout
-rw-r--r-- | perl-install/modules/parameters.pm | 4 |
1 files changed, 1 insertions, 3 deletions
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"; |