summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-06-20 23:19:49 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-06-20 23:19:49 +0000
commitc585132c588eb6e213b343359851f4a1b03a672c (patch)
treed04ff1538e9de04dc02cc7fbce404aaf10aa2358
parent11177ffc6a859cac7e0b64f523740f282e6be212 (diff)
downloaddrakx-c585132c588eb6e213b343359851f4a1b03a672c.tar
drakx-c585132c588eb6e213b343359851f4a1b03a672c.tar.gz
drakx-c585132c588eb6e213b343359851f4a1b03a672c.tar.bz2
drakx-c585132c588eb6e213b343359851f4a1b03a672c.tar.xz
drakx-c585132c588eb6e213b343359851f4a1b03a672c.zip
log error if a tool isn't executable
-rwxr-xr-xperl-install/standalone/service_harddrake6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index cbca4beb7..abbe67142 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -116,7 +116,11 @@ foreach my $hw_class (@harddrake::data::tree) {
}
next if $is_globetrotter && !$hw_class->{automatic};
- next unless -x first(split /\s+/, $configurator_pool[0]);
+ next unless $configurator_pool[0];
+ if (!-x first(split /\s+/, $configurator_pool[0])) {
+ log::explanations(qw(skip $Ident configuration sincecannot "$configurator" isn't executable));
+ next;
+ }
my ($pid, $no, $res);
if (!$hw_class->{automatic}) {
$SIG{ALRM} = sub { $no = 1; kill 15, $pid };