From ba95ef53cf09b7f45c2ef9a39c0c158b7d79a88e Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 31 Mar 2022 13:00:04 +0200 Subject: 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. --- apt-pkg/edsp/edsplistparser.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apt-pkg/edsp/edsplistparser.cc') 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; } -- cgit v1.2.3-70-g09d2