]> git.saurik.com Git - apt.git/blobdiff - ftparchive/writer.cc
calculate only expected hashes in methods
[apt.git] / ftparchive / writer.cc
index db68c21f05f97f8e6204856e3d98564254c90666..5932785908a8896aa1f0969257d1bd5cff3c26c8 100644 (file)
@@ -1075,8 +1075,8 @@ bool ReleaseWriter::DoPackage(string FileName)
 
    CheckSums[NewFileName].size = fd.Size();
 
-   Hashes hs;
-   hs.AddFD(fd, 0, DoHashes);
+   Hashes hs(DoHashes);
+   hs.AddFD(fd);
    CheckSums[NewFileName].Hashes = hs.GetHashStringList();
    fd.Close();