Explorar o código

apt-pkg/pkgcachegen.cc: fix incorrect test for modification time

Michael Vogt %!s(int64=15) %!d(string=hai) anos
pai
achega
96d14a91ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apt-pkg/pkgcachegen.cc

+ 1 - 1
apt-pkg/pkgcachegen.cc

@@ -935,7 +935,7 @@ static bool CheckValidity(const string &CacheFile,
       return false;
       return false;
    }
    }
 
 
-   if (List.GetLastModifiedTime() < GetModificationTime(CacheFile))
+   if (List.GetLastModifiedTime() > GetModificationTime(CacheFile))
    {
    {
       if (Debug == true)
       if (Debug == true)
 	 std::clog << "sources.list is newer than the cache" << std::endl;
 	 std::clog << "sources.list is newer than the cache" << std::endl;