From 5f4fcd88bdabee993dd07244d2f0f8f3658c40f2 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 10 May 2015 00:44:29 +0200 Subject: fix 'Source' to 'Package' rename in apt-ftparchive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- ftparchive/writer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ftparchive') 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) -- cgit v1.2.3