From: Michael Vogt Date: Mon, 8 Aug 2011 14:14:13 +0000 (+0200) Subject: apt-pkg/pkgcachegen.cc: fix incorrect test for modification time X-Git-Tag: 0.8.15.6~1^2~2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/96d14a91ce56150040d9c21cdce381cedc4c2518 apt-pkg/pkgcachegen.cc: fix incorrect test for modification time --- diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index 2bfb77609..7539e1b94 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -935,7 +935,7 @@ static bool CheckValidity(const string &CacheFile, return false; } - if (List.GetLastModifiedTime() < GetModificationTime(CacheFile)) + if (List.GetLastModifiedTime() > GetModificationTime(CacheFile)) { if (Debug == true) std::clog << "sources.list is newer than the cache" << std::endl;