Fixed md5 handling
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:28 +0000 (16:52 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:28 +0000 (16:52 +0000)
Author: jgg
Date: 1999-01-24 21:16:04 GMT
Fixed md5 handling

apt-pkg/acquire-item.cc
apt-pkg/acquire-method.cc

index 5930178..aef9668 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-item.cc,v 1.17 1998/12/11 06:32:33 jgg Exp $
+// $Id: acquire-item.cc,v 1.18 1999/01/24 21:16:04 jgg Exp $
 /* ######################################################################
 
    Acquire Item - Item to acquire
@@ -419,7 +419,7 @@ bool pkgAcqArchive::QueueNext()
 /* */
 void pkgAcqArchive::Done(string Message,unsigned long Size,string Md5Hash)
 {
-   Item::Done(Message,Size,MD5);
+   Item::Done(Message,Size,Md5Hash);
    
    // Check the size
    if (Size != Version->Size)
index 8b1de6f..e25b26b 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-method.cc,v 1.14 1998/12/05 04:19:01 jgg Exp $
+// $Id: acquire-method.cc,v 1.15 1999/01/24 21:16:04 jgg Exp $
 /* ######################################################################
 
    Acquire Method
@@ -148,7 +148,7 @@ void pkgAcqMethod::URIDone(FetchResult &Res, FetchResult *Alt)
                      TimeRFC1123(Res.LastModified).c_str());
 
    if (Res.MD5Sum.empty() == false)
-      End += snprintf(End,sizeof(S) - (End - S),"MD5Sum: %s\n",Res.MD5Sum.c_str());
+      End += snprintf(End,sizeof(S) - (End - S),"MD5-Hash: %s\n",Res.MD5Sum.c_str());
 
    if (Res.ResumePoint != 0)
       End += snprintf(End,sizeof(S) - (End - S),"Resume-Point: %u\n",
@@ -171,7 +171,7 @@ void pkgAcqMethod::URIDone(FetchResult &Res, FetchResult *Alt)
                         TimeRFC1123(Alt->LastModified).c_str());
       
       if (Alt->MD5Sum.empty() == false)
-        End += snprintf(End,sizeof(S) - (End - S),"Alt-MD5Sum: %s\n",
+        End += snprintf(End,sizeof(S) - (End - S),"Alt-MD5-Hash: %s\n",
                         Alt->MD5Sum.c_str());
       
       if (Alt->IMSHit == true)