From fecb6151b25e5ab7205c5218b933c79cdcc6d3b6 Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Sat, 17 Aug 2019 23:51:14 -1000 Subject: Warn if appropriate on date --- apt-pkg/deb/debmetaindex.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc index 0290f3df9..a1b7a2198 100644 --- a/apt-pkg/deb/debmetaindex.cc +++ b/apt-pkg/deb/debmetaindex.cc @@ -593,6 +593,9 @@ bool debReleaseIndex::Load(std::string const &Filename, std::string * const Erro if (MinAge != 0 || ValidUntil != 0 || MaxAge != 0) { + if (Date == 0) + _error->Warning( _("Invalid '%s' entry in Release file %s"), "Date", Filename.c_str()); + if (MinAge != 0 && ValidUntil != 0) { time_t const min_date = Date + MinAge; -- cgit v1.2.3