summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-08-17 23:51:14 -1000
committerSam Bingner <sam@bingner.com>2019-08-18 12:07:59 -1000
commitcc8c5eb106ddcaa1519c8475b179eeb50a698910 (patch)
tree398cfb24bcbc350729e197a7fdd2065379a7de06 /apt-pkg/deb
parentd4baec84f5a6a8484b7b7c284184721c748b6dc2 (diff)
Warn if appropriate on date1.8.2+ios
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/debmetaindex.cc3
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;