Parcourir la source

Fixed md5 handling
Author: jgg
Date: 1999-01-24 21:16:04 GMT
Fixed md5 handling

Arch Librarian il y a 22 ans
Parent
commit
fd9bd3dc10
2 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 2 2
      apt-pkg/acquire-item.cc
  2. 3 3
      apt-pkg/acquire-method.cc

+ 2 - 2
apt-pkg/acquire-item.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // 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
    Acquire Item - Item to acquire
@@ -419,7 +419,7 @@ bool pkgAcqArchive::QueueNext()
 /* */
 /* */
 void pkgAcqArchive::Done(string Message,unsigned long Size,string Md5Hash)
 void pkgAcqArchive::Done(string Message,unsigned long Size,string Md5Hash)
 {
 {
-   Item::Done(Message,Size,MD5);
+   Item::Done(Message,Size,Md5Hash);
    
    
    // Check the size
    // Check the size
    if (Size != Version->Size)
    if (Size != Version->Size)

+ 3 - 3
apt-pkg/acquire-method.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // 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
    Acquire Method
@@ -148,7 +148,7 @@ void pkgAcqMethod::URIDone(FetchResult &Res, FetchResult *Alt)
 		      TimeRFC1123(Res.LastModified).c_str());
 		      TimeRFC1123(Res.LastModified).c_str());
 
 
    if (Res.MD5Sum.empty() == false)
    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)
    if (Res.ResumePoint != 0)
       End += snprintf(End,sizeof(S) - (End - S),"Resume-Point: %u\n",
       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());
 			 TimeRFC1123(Alt->LastModified).c_str());
       
       
       if (Alt->MD5Sum.empty() == false)
       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());
 			 Alt->MD5Sum.c_str());
       
       
       if (Alt->IMSHit == true)
       if (Alt->IMSHit == true)