summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-08-08 17:00:34 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-08-08 17:00:34 +0200
commit24952309f8afeeaf85948f223e963801ca1de441 (patch)
tree4f750b9a5a4f3fa7052a2f39468c475acd2d6196 /apt-pkg/pkgcachegen.cc
parent29bc06137f829d51608fe697f3e27125d883fcef (diff)
parent629b60f6feea2d2d356645aa2615b212481bd3d8 (diff)
* test/integration/test-hashsum-verification:
- add regression test for hashsum verification * apt-pkg/acquire-item.cc: - if no Release.gpg file is found, still load the hashes for verification (closes: #636314) and add test * apt-pkg/pkgcachegen.cc: - fix incorrect comparision when checking sources.list freshness
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r--apt-pkg/pkgcachegen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index 3c21b2442..49a7f7adc 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -936,7 +936,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;