From 509ef0237f0a1ff0a0877d2e6ca9fd2280394cc3 Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Sat, 13 Apr 2002 06:00:36 +0000 Subject: [PATCH] - Also raise a different error message if we don't specify any package at all. # We might consider giving the 'pear help uninstall' output to the user? --- pear/PEAR/Installer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 721008f360..57c5b1355d 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -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"); -- 2.50.1