summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:57 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:57 +0000
commit9978c7b013773c56aa942305cc0c92994e7ee879 (patch)
treee0ae5306276e85154aeaf4f7bd78e6b27adb35b6 /apt-pkg/acquire-item.cc
parent34fc04214f843dd8f01398014961217cb9684c87 (diff)
Fixed handling of MD5 failures
Author: jgg Date: 1999-06-05 04:33:29 GMT Fixed handling of MD5 failures
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc4
1 files changed, 2 insertions, 2 deletions
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;
}
}