瀏覽代碼

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;
    }
 
-   if (List.GetLastModifiedTime() < GetModificationTime(CacheFile))
+   if (List.GetLastModifiedTime() > GetModificationTime(CacheFile))
    {
       if (Debug == true)
 	 std::clog << "sources.list is newer than the cache" << std::endl;