Browse Source

- 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?
experimental/new_ui_api
Markus Fischer 24 years ago
parent
commit
509ef0237f
  1. 3
      pear/PEAR/Installer.php

3
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");

Loading…
Cancel
Save