cvs: php-src /pear/PEAR Installer.php
| From: | Greg Beaver | Date: | Mon, 15 Sep 2003 03:29:13 +0000 |
| Subject: | cvs: php-src /pear/PEAR Installer.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12739@lists.php.net to get a copy of this message | ||
cellog Sun Sep 14 23:29:13 2003 EDT
Modified files:
/php-src/pear/PEAR Installer.php
Log:
move registration of installed location to post-commit
Index: php-src/pear/PEAR/Installer.php
diff -u php-src/pear/PEAR/Installer.php:1.115 php-src/pear/PEAR/Installer.php:1.116
--- php-src/pear/PEAR/Installer.php:1.115 Sun Sep 14 16:17:24 2003
+++ php-src/pear/PEAR/Installer.php Sun Sep 14 23:29:12 2003
@@ -18,7 +18,7 @@
// | Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Installer.php,v 1.115 2003/09/14 20:17:24 cellog Exp $
+// $Id: Installer.php,v 1.116 2003/09/15 03:29:12 cellog Exp $
require_once 'PEAR/Common.php';
require_once 'PEAR/Registry.php';
@@ -314,10 +314,8 @@
}
}
$this->addFileOperation("rename", array($dest_file, $final_dest_file));
-
- // XXX SHOULD BE DONE ONLY AFTER COMMIT
// Store the full path where the file was installed for easy unistall
- $this->pkginfo['filelist'][$file]['installed_as'] = $installed_as;
+ $this->addFileOperation("installed_as", array($file, $installed_as));
//$this->log(2, "installed: $dest_file");
return PEAR_INSTALLER_OK;
@@ -409,6 +407,9 @@
case 'rmdir':
@rmdir($data[0]);
$this->log(3, "+ rmdir $data[0]");
+ break;
+ case 'installed_as':
+ $this->pkginfo['filelist'][$data[0]]['installed_as'] =
$data[1];
break;
}
}