// - upgrade : upgrade existing install
//
if (empty($this->registry)) {
- $this->registry = new PEAR_Registry;
+ $this->registry = new PEAR_Registry($this->phpdir);
}
$oldcwd = getcwd();
$need_download = false;
function uninstall($package)
{
if (empty($this->registry)) {
- $this->registry = new PEAR_Registry;
+ $this->registry = new PEAR_Registry($this->phpdir);
}
// Delete the files
break;
case 'list-installed':
include_once 'PEAR/Registry.php';
- $reg = new PEAR_Registry;
+ $reg = new PEAR_Registry($script_dir);
$installed = $reg->packageInfo();
$i = $j = 0;
print("Installed packages:\n");