From: Arch Librarian Date: Mon, 20 Sep 2004 16:53:57 +0000 (+0000) Subject: Fixed handling of MD5 failures X-Git-Tag: 0.7.24ubuntu1~1341 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/9978c7b013773c56aa942305cc0c92994e7ee879 Fixed handling of MD5 failures Author: jgg Date: 1999-06-05 04:33:29 GMT Fixed handling of MD5 failures --- diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 1b683a373..42e9f25ae 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire-item.cc,v 1.30 1999/05/24 03:39:36 jgg Exp $ +// $Id: acquire-item.cc,v 1.31 1999/06/05 04:33:29 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -484,7 +484,7 @@ void pkgAcqArchive::Done(string Message,unsigned long Size,string Md5Hash) if (Md5Hash != MD5) { _error->Error("MD5Sum mismatch for package %s",Version.ParentPkg().Name()); - Rename(DestFile + ".FAILED",DestFile); + Rename(DestFile,DestFile + ".FAILED"); return; } } diff --git a/debian/changelog b/debian/changelog index 88f524705..6136fa9d9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -22,6 +22,7 @@ apt (0.3.6.1) unstable; urgency=low * Suggests dpkg-dev for apt-get source. Closes: #38158 * Fixed typo in apt-get help. Closes: #38712 * Improved the error message in the case of broken held package. Closes: #38777 + * Fixed handling of MD5 failures -- Jason Gunthorpe Wed, 12 May 1999 09:18:49 -0700