From: Stig Bakken Date: Thu, 6 Jun 2002 10:51:26 +0000 (+0000) Subject: * add "nobuild" option to installer (-B or --nobuild option to CLI frontend) X-Git-Tag: RELEASE_0_90~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1826b42874c4a1e29c0ac75810204571c387d20;p=php * add "nobuild" option to installer (-B or --nobuild option to CLI frontend) --- diff --git a/pear/PEAR/Command/Install.php b/pear/PEAR/Command/Install.php index cabd97ff1f..6c24be19ad 100644 --- a/pear/PEAR/Command/Install.php +++ b/pear/PEAR/Command/Install.php @@ -53,6 +53,10 @@ class PEAR_Command_Install extends PEAR_Command_Common 'shortopt' => 's', 'doc' => 'soft install, fail silently, or upgrade if already installed', ), + 'nobuild' => array( + 'shortopt' => 'B', + 'doc' => 'don\'t build C extensions', + ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', @@ -95,6 +99,10 @@ four ways of specifying packages. 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), + 'nobuild' => array( + 'shortopt' => 'B', + 'doc' => 'don\'t build C extensions', + ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index a3c8f100d2..246ae19183 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -467,7 +467,7 @@ class PEAR_Installer extends PEAR_Common } } - if ($this->source_files > 0) { + if ($this->source_files > 0 && empty($options['nobuild'])) { $this->log(1, "$this->source_files source files, building"); $bob = &new PEAR_Builder($this->ui); $bob->debug = $this->debug;