From 4f817f66ccf2058fb7f0d236934db8a708ca331e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 7 Oct 2005 16:36:14 +0000 Subject: fix previous commit so that "prog1|prog2" like construction still work --- perl-install/run_program.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') 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; } -- cgit v1.2.1