]> granicus.if.org Git - php/commitdiff
* reintroduce (un)install -r option for Registeration only
authorStig Bakken <ssb@php.net>
Fri, 19 Apr 2002 14:00:14 +0000 (14:00 +0000)
committerStig Bakken <ssb@php.net>
Fri, 19 Apr 2002 14:00:14 +0000 (14:00 +0000)
pear/PEAR/Command/Install.php

index e037c0a1bb8699d94e30938281b5f0ad0cb702f1..a9ffa65cd8f49eba34fc82231364e475c4e1a7c0 100644 (file)
@@ -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;
         }