summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2022-03-31 13:00:04 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2022-04-01 14:16:19 +0200
commitba95ef53cf09b7f45c2ef9a39c0c158b7d79a88e (patch)
tree3386b23fa1e8d047a6a56d82e3dc8ce82693e653
parent2005f1c263a942b37d179b9b8f9b7ab343ca7459 (diff)
Stop parsing undocumented unknown EDSP field APT-Hash
It was introduced in the first commit for EDSP, but beside this reference, never appears in documentation and code. Seems like an earlier name of what APT-ID ended up to be and as such should be more than safely being able to retire now.
-rw-r--r--apt-pkg/edsp/edsplistparser.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/apt-pkg/edsp/edsplistparser.cc b/apt-pkg/edsp/edsplistparser.cc
index 34b9ec934..0be543e3c 100644
--- a/apt-pkg/edsp/edsplistparser.cc
+++ b/apt-pkg/edsp/edsplistparser.cc
@@ -61,9 +61,7 @@ APT::StringView edspLikeListParser::Description_md5()
// ListParser::VersionHash - Compute a unique hash for this version /*{{{*/
uint32_t edspLikeListParser::VersionHash()
{
- if (Section.Exists("APT-Hash") == true)
- return Section.FindI("APT-Hash");
- else if (Section.Exists("APT-ID") == true)
+ if (Section.Exists("APT-ID") == true)
return Section.FindI("APT-ID");
return 0;
}