diff options
author | Sam Bingner <sam@bingner.com> | 2019-08-17 23:51:14 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2020-07-17 00:22:23 -1000 |
commit | fecb6151b25e5ab7205c5218b933c79cdcc6d3b6 (patch) | |
tree | 98c22477b42542eec6c8e0ec1e315f56a47361a8 /apt-pkg | |
parent | 7f51a104d161e5d4e9fe0c43d0cd94cafd13e248 (diff) |
Warn if appropriate on date
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/deb/debmetaindex.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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; |