From 021ed8a10bc797e61207d928f33b23450ee30724 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Fri, 19 Apr 2002 14:00:14 +0000 Subject: [PATCH] * reintroduce (un)install -r option for Registeration only --- pear/PEAR/Command/Install.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.40.0