cvs: php4(PHP_4_0_7) /pear/PEAR WebInstaller.php
| From: | Christian Stocker | Date: | Wed, 14 Nov 2001 09:20:49 +0000 |
| Subject: | cvs: php4(PHP_4_0_7) /pear/PEAR WebInstaller.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1317@lists.php.net to get a copy of this message | ||
chregu Wed Nov 14 04:20:49 2001 EDT
Modified files: (Branch: PHP_4_0_7)
/php4/pear/PEAR WebInstaller.php
Log:
checking if package.xml.gz exists, before checking if it's writeable
Index: php4/pear/PEAR/WebInstaller.php
diff -u php4/pear/PEAR/WebInstaller.php:1.1.2.5 php4/pear/PEAR/WebInstaller.php:1.1.2.6
--- php4/pear/PEAR/WebInstaller.php:1.1.2.5 Mon Nov 12 20:26:49 2001
+++ php4/pear/PEAR/WebInstaller.php Wed Nov 14 04:20:49 2001
@@ -352,7 +352,7 @@
// check if we can write the Package.xml file for caching
- if ( is_writeable($this->installdir."/$PackageFile") ||
!file_exists($this->installdir."/$PackageFile") &&
is_writeable($this->installdir) )
+ if ( (file_exists($this->installdir."/$PackageFile") &&
is_writeable($this->installdir."/$PackageFile")) ||
!file_exists($this->installdir."/$PackageFile") &&
is_writeable($this->installdir) )
{
$time = filemtime($this->installdir."/$PackageFile");