summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-04 14:25:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-04 14:25:49 +0000
commit51d6259470fb1d02503a2c0de2c806026d87c396 (patch)
tree5c7671b3a9121c099648c82007f8615aaaa022c8 /perl-install/bootloader.pm
parent823defcb7c1e66a5aafb9d94ca9c7ecef238f12c (diff)
downloaddrakx-51d6259470fb1d02503a2c0de2c806026d87c396.tar
drakx-51d6259470fb1d02503a2c0de2c806026d87c396.tar.gz
drakx-51d6259470fb1d02503a2c0de2c806026d87c396.tar.bz2
drakx-51d6259470fb1d02503a2c0de2c806026d87c396.tar.xz
drakx-51d6259470fb1d02503a2c0de2c806026d87c396.zip
use if_() where possible (as reported by perl_checker)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 63751aee0..952c54d4b 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -738,8 +738,8 @@ sub install_silo {
}
log::l("Installing boot loader...");
$::testing and return;
- run_program::rooted($::prefix, "silo", "2>", "/tmp/.error", $silo->{use_partition} ? "-t" : ()) or
- run_program::rooted_or_die($::prefix, "silo", "2>", "/tmp/.error", "-p", "2", $silo->{use_partition} ? "-t" : ());
+ run_program::rooted($::prefix, "silo", "2>", "/tmp/.error", if_($silo->{use_partition}, "-t")) or
+ run_program::rooted_or_die($::prefix, "silo", "2>", "/tmp/.error", "-p", "2", if_($silo->{use_partition}, "-t"));
unlink "$::prefix/tmp/.error";
#- try writing in the prom.