]> git.saurik.com Git - apt.git/commitdiff
fix 'Source' to 'Package' rename in apt-ftparchive
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 9 May 2015 22:44:29 +0000 (00:44 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 11 May 2015 15:22:32 +0000 (17:22 +0200)
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

index 5932785908a8896aa1f0969257d1bd5cff3c26c8..855e0ef792b39273082b32471966b7286fc2253c 100644 (file)
@@ -837,7 +837,8 @@ bool SourcesWriter::DoPackage(string FileName)
    // (5 hardcoded + checksums + maintainer + end marker)
    std::vector<TFRewriteData> Changes;
 
    // (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)
    if (Files.empty() == false)
       Changes.push_back(SetTFRewriteData("Files",Files.c_str()));
    if (ChecksumsSha1.empty() == false)