Skip to content

Commit 9e21b2e

Browse files
committed
* abort install when an extension fails to build (patch by ja at
morrdusk dot net)
1 parent ecef1df commit 9e21b2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pear/PEAR/Builder.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,14 @@ function build($descfile, $callback = null)
252252
}
253253
foreach ($to_run as $cmd) {
254254
$err = $this->_runCommand($cmd, $callback);
255-
if (PEAR::isError($err) && !$err) {
255+
if (PEAR::isError($err)) {
256256
chdir($old_cwd);
257257
return $err;
258258
}
259+
if (!$err) {
260+
chdir($old_cwd);
261+
return $this->raiseError("`$cmd' failed");
262+
}
259263
}
260264
if (!($dp = opendir("modules"))) {
261265
chdir($old_cwd);

0 commit comments

Comments
 (0)