X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/76cbc9abb2d09ee5b248dfaa24948ba016fb6dee..9224ce3d4d1ea0428a70e75134998e08aa45b1e6:/ftparchive/writer.cc diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index db68c21f0..593278590 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -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();