From f0b9f4beca09a880c275a8eaa8f0aaac97f1f21b Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Mon, 17 Nov 2003 05:57:40 +0000 Subject: [PATCH] fix bug #248 MFH --- pear/PEAR/Installer.php | 5 ++++- pear/package-PEAR.xml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index a8e92aceb8..41d46d5541 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -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 diff --git a/pear/package-PEAR.xml b/pear/package-PEAR.xml index f0fb01539e..2ed2445108 100644 --- a/pear/package-PEAR.xml +++ b/pear/package-PEAR.xml @@ -55,6 +55,7 @@ PEAR Installer: * Bug #171 --alldeps with a rel="eq" should install the required version, if possible * Bug #249 installing from an url doesnt work +* Bug #248 --force command does not work as expected -- 2.40.0