From: David Kalnischkies Date: Sat, 9 May 2015 22:44:29 +0000 (+0200) Subject: fix 'Source' to 'Package' rename in apt-ftparchive X-Git-Tag: 1.1.exp9~140^2~40 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/5f4fcd88bdabee993dd07244d2f0f8f3658c40f2 fix 'Source' to 'Package' rename in apt-ftparchive This rename with value is ordered by the 'old' name 'Source', but should be ordered by the new nameā€¦ by splitting the operation in a delete and a new field we can easily fix this problem locally for now. --- diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index 593278590..855e0ef79 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -837,7 +837,8 @@ bool SourcesWriter::DoPackage(string FileName) // (5 hardcoded + checksums + maintainer + end marker) std::vector 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)