Re: installer transactions
| From: | Stefan Saasen | Date: | Sun, 10 Nov 2002 18:52:01 +0000 |
| Subject: | Re: installer transactions | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10681@lists.php.net to get a copy of this message | ||
Am Sonntag, 10.11.02 um 04:23 Uhr schrieb Stig S. Bakken:
I'm on Mac OS X (10.2):
[mac:/usr/local/lib] sts% uname -a
Darwin mac.kaoskind.nil 6.1 Darwin Kernel Version 6.1: Fri Sep 6 23:24:34 PDT 2002; root:xnu/xnu-344.2.obj~2/RELEASE_PPC Power Macintosh powerpc
- Install, Uninstall works
Next, try write-protecting your php_dir, and verify that the install aborts nicely and leaves no files behind.- php_dir is write-protected, installation falied - no files left behind (in /tmp): mac:~/work/pear] sts% pear install XML_RSS downloading XML_RSS-0.9.1.tgz ... ...done: 3,162 bytes Warning: Unable to create '/usr/local/lib/php/XML/.tmpRSS.php': Permission denied in Installer.php on line 224 failed to copy /tmp/tmph8kA92/XML_RSS-0.9.1/RSS.php to /usr/local/lib/php/XML/.tmpRSS.php 1
Next, install a package (for example Log) and write-protect a sub-directory from that package ($php_dir/Log), then verify that "uninstall" aborts cleanly.[mac:local/lib/php] sts% pear uninstall Log permission denied (delete): /usr/local/lib/php/Log/composite.php permission denied (delete): /usr/local/lib/php/Log/console.php permission denied (delete): /usr/local/lib/php/Log/file.php permission denied (delete): /usr/local/lib/php/Log/mail.php permission denied (delete): /usr/local/lib/php/Log/mcal.php permission denied (delete): /usr/local/lib/php/Log/observer.php permission denied (delete): /usr/local/lib/php/Log/sql.php permission denied (delete): /usr/local/lib/php/Log/syslog.php uninstall failed 1[mac:local/lib/php] sts% - stefan