From 0e6f284a6239ff3dabba6ea1d691332fa47c88bc Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sun, 31 Aug 2003 06:08:41 +0000 Subject: [PATCH] fix #25322 --- pear/PEAR/Installer.php | 3 ++- pear/package-PEAR.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index efb28e41fd..d4057f4e8c 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -284,7 +284,8 @@ class PEAR_Installer extends PEAR_Common if (strtolower($md5sum) == strtolower($atts['md5sum'])) { $this->log(3, "md5sum ok: $final_dest_file"); } else { - $this->log(0, "warning : bad md5sum for file $final_dest_file"); + return $this->raiseError("bad md5sum for file $final_dest_file", + PEAR_INSTALLER_FAILED); } } if (!OS_WINDOWS) { diff --git a/pear/package-PEAR.xml b/pear/package-PEAR.xml index efc1567681..b378482af4 100644 --- a/pear/package-PEAR.xml +++ b/pear/package-PEAR.xml @@ -65,6 +65,7 @@ use of inadvisable @ in setErrorHandling pear install DB-1.2.tar to download as uncompressed tar * Fix #25008 - unhelpful error message * Fixed optional dependencies in Dependency.php +* Fix #25322 - bad md5sum should be fatal error -- 2.40.0