* abort install when an extension fails to build (patch by ja at

morrdusk dot net)
This commit is contained in:
Stig Bakken 2003-03-21 07:57:27 +00:00
parent ecef1df39c
commit 9e21b2eee4

View File

@ -252,10 +252,14 @@ class PEAR_Builder extends PEAR_Common
}
foreach ($to_run as $cmd) {
$err = $this->_runCommand($cmd, $callback);
if (PEAR::isError($err) && !$err) {
if (PEAR::isError($err)) {
chdir($old_cwd);
return $err;
}
if (!$err) {
chdir($old_cwd);
return $this->raiseError("`$cmd' failed");
}
}
if (!($dp = opendir("modules"))) {
chdir($old_cwd);