summaryrefslogtreecommitdiff
path: root/ftparchive
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2022-03-28 15:25:36 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2022-04-01 14:16:15 +0200
commit7b8da771e2061462b9196f38366c34e4f919d0df (patch)
tree77647d2116023f656e52954a584fdb3b590758c3 /ftparchive
parentf6438ea9e726a1c13ce8d90ac78cc272346ab0f8 (diff)
Drop support for long obsoleted Suggests alias: Optional
dpkg-dev stopped recognizing it in 2007 (1.14.7) while building packages. The rename itself happened in 1995 (0.93.72).
Diffstat (limited to 'ftparchive')
-rw-r--r--ftparchive/writer.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc
index 5dcb98c9c..e5565fa47 100644
--- a/ftparchive/writer.cc
+++ b/ftparchive/writer.cc
@@ -486,7 +486,6 @@ bool PackagesWriter::DoPackage(string FileName)
Changes.push_back(pkgTagSection::Tag::Rewrite("Filename", NewFileName));
Changes.push_back(pkgTagSection::Tag::Rewrite("Priority", OverItem->Priority));
Changes.push_back(pkgTagSection::Tag::Remove("Status"));
- Changes.push_back(pkgTagSection::Tag::Remove("Optional"));
string DescriptionMd5;
if (LongDescription == false) {
@@ -514,19 +513,6 @@ bool PackagesWriter::DoPackage(string FileName)
if (NewMaint.empty() == false)
Changes.push_back(pkgTagSection::Tag::Rewrite("Maintainer", NewMaint));
- /* Get rid of the Optional tag. This is an ugly, ugly, ugly hack that
- dpkg-scanpackages does. Well sort of. dpkg-scanpackages just does renaming
- but dpkg does this append bit. So we do the append bit, at least that way the
- status file and package file will remain similar. There are other transforms
- but optional is the only legacy one still in use for some lazy reason. */
- string OptionalStr = Tags.FindS("Optional");
- if (OptionalStr.empty() == false)
- {
- if (Tags.FindS("Suggests").empty() == false)
- OptionalStr = Tags.FindS("Suggests") + ", " + OptionalStr;
- Changes.push_back(pkgTagSection::Tag::Rewrite("Suggests", OptionalStr));
- }
-
for (map<string,string>::const_iterator I = OverItem->FieldOverride.begin();
I != OverItem->FieldOverride.end(); ++I)
Changes.push_back(pkgTagSection::Tag::Rewrite(I->first, I->second));