From 96d14a91ce56150040d9c21cdce381cedc4c2518 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 8 Aug 2011 16:14:13 +0200 Subject: apt-pkg/pkgcachegen.cc: fix incorrect test for modification time --- apt-pkg/pkgcachegen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3 From 02734b011499cebc763b6700072a4df2abb5afb4 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 8 Aug 2011 16:14:54 +0200 Subject: apt-pkg/acquire-item.cc: add more debug output --- apt-pkg/acquire-item.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index ebd8d5a12..9313c4b47 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1397,6 +1397,7 @@ void pkgAcqMetaIndex::QueueIndexes(bool verify) /*{{{*/ { std::cerr << "Queueing: " << (*Target)->URI << std::endl; std::cerr << "Expected Hash: " << ExpectedIndexHash.toStr() << std::endl; + std::cerr << "For: " << Record->MetaKeyFilename << std::endl; } if (ExpectedIndexHash.empty() == true && (*Target)->IsOptional() == false) { -- cgit v1.2.3