diff options
Diffstat (limited to 'perl-install/run_program.pm')
-rw-r--r-- | perl-install/run_program.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm index 0e6ede3b4..7e6e94368 100644 --- a/perl-install/run_program.pm +++ b/perl-install/run_program.pm @@ -63,7 +63,8 @@ sub raw { my $stdout = $stdout_raw && (ref($stdout_raw) ? $tmpdir->() . "/.drakx-stdout.$$" : "$root$stdout_raw"); my $stderr = $stderr_raw && (ref($stderr_raw) ? $tmpdir->() . "/.drakx-stderr.$$" : "$root$stderr_raw"); - if (! ($real_name =~ m!^/! ? -x $real_name : whereis_binary($real_name, $root))) { + my ($rname) = split(/[ \|]/, $real_name, 2); + if (! ($rname =~ m!^/! ? -x $rname : whereis_binary($rname, $root))) { log::l("program not found: $real_name"); return; } |