diff options
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; |