From: Stig Bakken Date: Fri, 19 Apr 2002 14:00:14 +0000 (+0000) Subject: * reintroduce (un)install -r option for Registeration only X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~567 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=021ed8a10bc797e61207d928f33b23450ee30724;p=php * reintroduce (un)install -r option for Registeration only --- diff --git a/pear/PEAR/Command/Install.php b/pear/PEAR/Command/Install.php index e037c0a1bb..a9ffa65cd8 100644 --- a/pear/PEAR/Command/Install.php +++ b/pear/PEAR/Command/Install.php @@ -75,6 +75,7 @@ class PEAR_Command_Install extends PEAR_Command_Common " -f forces the installation of the package\n". " when it is already installed\n". " -n do not take care of package dependencies\n". + " -r only (un)register package, do not (un)install files\n". " -s soft update: install or upgrade only if needed\n". " -Z no compression: download plain .tar files"; return $ret; @@ -85,7 +86,7 @@ class PEAR_Command_Install extends PEAR_Command_Common function getOptions() { - return array('f', 'n', 's', 'Z'); + return array('f', 'n', 'r', 's', 'Z'); } // }}} @@ -105,6 +106,9 @@ class PEAR_Command_Install extends PEAR_Command_Common if (isset($options['n'])) { $opts['nodeps'] = true; } + if (isset($options['r'])) { + $opts['register_only'] = true; + } if (isset($options['s'])) { $opts['soft'] = true; }