]> granicus.if.org Git - php/commitdiff
- Also raise a different error message if we don't specify any package at all.
authorMarkus Fischer <mfischer@php.net>
Sat, 13 Apr 2002 06:00:36 +0000 (06:00 +0000)
committerMarkus Fischer <mfischer@php.net>
Sat, 13 Apr 2002 06:00:36 +0000 (06:00 +0000)
# We might consider giving the 'pear help uninstall' output to the user?

pear/PEAR/Installer.php

index 721008f360ff70d794b98fdf61eefd2300984602..57c5b1355d6860b0c435f11042aa069d42b93576 100644 (file)
@@ -100,6 +100,9 @@ class PEAR_Installer extends PEAR_Common
 
     function _deletePackageFiles($package)
     {
+        if (!strlen($package)) {
+            return $this->raiseError("No package to uninstall given");
+        }
         $filelist = $this->registry->packageInfo($package, 'filelist');
         if ($filelist == null) {
             return $this->raiseError("$package not installed");