]> granicus.if.org Git - php/commitdiff
MFH
authorGreg Beaver <cellog@php.net>
Mon, 17 Nov 2003 06:07:44 +0000 (06:07 +0000)
committerGreg Beaver <cellog@php.net>
Mon, 17 Nov 2003 06:07:44 +0000 (06:07 +0000)
pear/PEAR/Installer.php

index 41d46d5541d3db5348ad72386888b61c1896dd05..1b7f5e4d747a75fdba9a2e301d894d651d27a1d1 100644 (file)
@@ -803,7 +803,7 @@ class PEAR_Installer extends PEAR_Common
                     if ($version == 0 && !isset($options['force'])) {
                         return $this->raiseError('No release with state equal to: \'' . implode(', ', $states) .
                                                  "' found for '$pkgfile'");
-                    } else {
+                    } elseif ($version == 0) {
                         $this->log(0, "Warning: $pkgfile is state '$inf[state]' which is less stable " .
                                       "than state '$state'");
                     }