// (5 hardcoded + checksums + maintainer + end marker)
std::vector<TFRewriteData> Changes;
- Changes.push_back(SetTFRewriteData("Source",Package.c_str(),"Package"));
+ Changes.push_back(SetTFRewriteData("Source", 0));
+ Changes.push_back(SetTFRewriteData("Package",Package.c_str()));
if (Files.empty() == false)
Changes.push_back(SetTFRewriteData("Files",Files.c_str()));
if (ChecksumsSha1.empty() == false)
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();