Преглед изворни кода

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

Michael Vogt пре 15 година
родитељ
комит
96d14a91ce
1 измењених фајлова са 1 додато и 1 уклоњено
  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;