]> granicus.if.org Git - php/commitdiff
fix bug #248 MFH
authorGreg Beaver <cellog@php.net>
Mon, 17 Nov 2003 05:57:40 +0000 (05:57 +0000)
committerGreg Beaver <cellog@php.net>
Mon, 17 Nov 2003 05:57:40 +0000 (05:57 +0000)
pear/PEAR/Installer.php
pear/package-PEAR.xml

index a8e92aceb8bceda10959c2a993da61adc6e77d51..41d46d5541d3db5348ad72386888b61c1896dd05 100644 (file)
@@ -800,9 +800,12 @@ class PEAR_Installer extends PEAR_Common
                             $version = $ver;
                         }
                     }
-                    if ($version == 0) {
+                    if ($version == 0 && !isset($options['force'])) {
                         return $this->raiseError('No release with state equal to: \'' . implode(', ', $states) .
                                                  "' found for '$pkgfile'");
+                    } else {
+                        $this->log(0, "Warning: $pkgfile is state '$inf[state]' which is less stable " .
+                                      "than state '$state'");
                     }
                 }
                 // Check if we haven't already the version
index f0fb01539e00919f33317dd5006e89f66219e92e..2ed2445108786483bf41c1da3469cad4e652b95d 100644 (file)
@@ -55,6 +55,7 @@ PEAR Installer:
 
 * Bug #171 --alldeps with a rel=&quot;eq&quot; should install the required version, if possible
 * Bug #249 installing from an url doesnt work
+* Bug #248 --force command does not work as expected
 
     </notes>
     <provides type="class" name="OS_Guess" />