[Yum-devel] [PATCH] Don't check the pkg nums for each lookup, libguestfs fix. BZ 662347.
James Antill
james at and.org
Mon Dec 13 14:21:51 UTC 2010
---
yum/sqlitesack.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
index ed681fb..8a6f6f3 100644
--- a/yum/sqlitesack.py
+++ b/yum/sqlitesack.py
@@ -932,10 +932,14 @@ class YumSqlitePackageSack(yumRepo.YumPackageSack):
# Check to make sure the DB data matches, this should always pass but
# we've had weird errors. So check it for a bit.
for repo in self.filelistsdb:
+ # Only check each repo. once ... the libguestfs check :).
+ if hasattr(repo, '_checked_filelists_pkgs'):
+ continue
pri_pkgs = self._sql_MD_pkg_num('primary', repo)
fil_pkgs = self._sql_MD_pkg_num('filelists', repo)
if pri_pkgs != fil_pkgs:
raise Errors.RepoError
+ repo._checked_filelists_pkgs = True
sql_params = []
dirname_check = ""
--
1.7.2.3
More information about the Yum-devel
mailing list