diff --git a/pisi/db/lazydb.py b/pisi/db/lazydb.py index 8a4c7f5d..7b3771ca 100644 --- a/pisi/db/lazydb.py +++ b/pisi/db/lazydb.py @@ -60,8 +60,7 @@ class LazyDB(Singleton): return False cache_modified = os.stat(self.__cache_file()).st_mtime cache_dir_modified = os.stat(self.cachedir).st_mtime - valid = cache_modified > cache_dir_modified - return valid + return cache_modified > cache_dir_modified def cache_load(self): if os.path.exists(self.__cache_file()) and self.cache_valid():