summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-04-19 14:00:14 +0000
committerStig Bakken <ssb@php.net>2002-04-19 14:00:14 +0000
commit021ed8a10bc797e61207d928f33b23450ee30724 (patch)
tree8d8067aba8133745182683600cb424da42363a04
parent0ca308d152f9cfaab54c3ca6de36e13063a06fc3 (diff)
downloadphp-git-021ed8a10bc797e61207d928f33b23450ee30724.tar.gz
* reintroduce (un)install -r option for Registeration only
-rw-r--r--pear/PEAR/Command/Install.php6
1 files changed, 5 insertions, 1 deletions
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;
}