summaryrefslogtreecommitdiffstats
path: root/perl-install/run_program.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-21 13:04:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-21 13:04:48 +0000
commit53f3ae91159ce352c9e7f42a40798e6fe9eac1b1 (patch)
tree79376e53a02b9d5e1dd4b00e1e442dd7dd3d4ccb /perl-install/run_program.pm
parent3b2477d97b37e6930492e74172a51068059d07d3 (diff)
downloaddrakx-backup-do-not-use-53f3ae91159ce352c9e7f42a40798e6fe9eac1b1.tar
drakx-backup-do-not-use-53f3ae91159ce352c9e7f42a40798e6fe9eac1b1.tar.gz
drakx-backup-do-not-use-53f3ae91159ce352c9e7f42a40798e6fe9eac1b1.tar.bz2
drakx-backup-do-not-use-53f3ae91159ce352c9e7f42a40798e6fe9eac1b1.tar.xz
drakx-backup-do-not-use-53f3ae91159ce352c9e7f42a40798e6fe9eac1b1.zip
allow the saving in perl variable to be done even if the exit status is not 0
Diffstat (limited to 'perl-install/run_program.pm')
-rw-r--r--perl-install/run_program.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index 4fc9393f6..44fe12899 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -71,9 +71,8 @@ sub raw {
kill 9, $pid;
return;
}
- $ok or return;
- if ($stdout_raw && ref($stdout_raw)) {
+ if ($stdout_raw && ref($stdout_raw)) {
if (ref($stdout_raw) eq 'ARRAY') {
@$stdout_raw = cat_($stdout);
} else {
@@ -89,7 +88,7 @@ sub raw {
}
unlink $stderr;
}
- 1;
+ $ok;
} else {
if ($stderr && $stderr eq 'STDERR') {
} elsif ($stderr) {