summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debmetaindex.cc
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-12-26 15:19:05 -1000
committerSam Bingner <sam@bingner.com>2019-12-26 15:24:16 -1000
commit713b65be84830af1a57148b44dc1d1d4010ece3e (patch)
tree7656452774b4ce333d514cc0d1ce303a7f9ac997 /apt-pkg/deb/debmetaindex.cc
parent8d1277b777045f45ffae210edea608c27587d7a2 (diff)
Revert "Treat SHA1 as Weak rather than untrusted. Add hardcoded exceptions for Modmyi/Zodttd/Bigboss to silence errors"
This reverts commit 0a4d0898091e9a6ff584f14d310a13f61fb3d9a3.
Diffstat (limited to 'apt-pkg/deb/debmetaindex.cc')
-rw-r--r--apt-pkg/deb/debmetaindex.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc
index 2039f8308..98bac7a70 100644
--- a/apt-pkg/deb/debmetaindex.cc
+++ b/apt-pkg/deb/debmetaindex.cc
@@ -523,12 +523,11 @@ bool debReleaseIndex::Load(std::string const &Filename, std::string * const Erro
}
bool AuthPossible = false;
- /*if(FoundHashSum == false)
+ if(FoundHashSum == false)
_error->Warning(_("No Hash entry in Release file %s"), Filename.c_str());
else if(FoundStrongHashSum == false)
_error->Warning(_("No Hash entry in Release file %s which is considered strong enough for security purposes"), Filename.c_str());
- else*/
- if (FoundHashSum && FoundStrongHashSum)
+ else
AuthPossible = true;
std::string const StrDate = Section.FindS("Date");