]> granicus.if.org Git - php/commitdiff
checking if package.xml.gz exists, before checking if it's writeable
authorChristian Stocker <chregu@php.net>
Wed, 14 Nov 2001 09:22:00 +0000 (09:22 +0000)
committerChristian Stocker <chregu@php.net>
Wed, 14 Nov 2001 09:22:00 +0000 (09:22 +0000)
pear/PEAR/WebInstaller.php

index 6a9b83b2f5e2b36f0f0c1f58735d76d063a64eda..eb01c967a2db27806c46e55169e499b8e34b7144 100644 (file)
@@ -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");