From fde1575ba25c96300ee32eed80f9cf94ca3630c5 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Wed, 14 Nov 2001 09:22:00 +0000 Subject: [PATCH] checking if package.xml.gz exists, before checking if it's writeable --- pear/PEAR/WebInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pear/PEAR/WebInstaller.php b/pear/PEAR/WebInstaller.php index 6a9b83b2f5..eb01c967a2 100644 --- a/pear/PEAR/WebInstaller.php +++ b/pear/PEAR/WebInstaller.php @@ -352,7 +352,7 @@ class PEAR_WebInstaller extends PEAR // 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"); -- 2.40.0