summaryrefslogtreecommitdiff
path: root/ftparchive/writer.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-05-10 00:44:29 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-05-11 17:22:32 +0200
commit5f4fcd88bdabee993dd07244d2f0f8f3658c40f2 (patch)
treec9bb61f0853cd9349d75ce0bb17f85e7eb25962f /ftparchive/writer.cc
parent353c135e45d3b76dbecc1ba1b2bd9266601181ee (diff)
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.
Diffstat (limited to 'ftparchive/writer.cc')
-rw-r--r--ftparchive/writer.cc3
1 files changed, 2 insertions, 1 deletions
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<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)