From 355ca8a7a471094dd4630f669e303da3ff807d6d Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Fri, 12 Sep 2008 20:37:08 -0400 Subject: add some extra debugging output --- scripts/reporead.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/reporead.py b/scripts/reporead.py index 40f1e98..46ab009 100755 --- a/scripts/reporead.py +++ b/scripts/reporead.py @@ -170,6 +170,12 @@ def db_update(archname, pkgs): logger.debug("Creating sets") dbset = set([pkg.pkgname for pkg in dbpkgs]) syncset = set([pkg.name for pkg in pkgs]) + logger.info("%d packages in current web DB" % len(dbset)) + logger.info("%d packages in new updating db" % len(syncset)) + # packages in syncdb and not in database (add to database) + logger.debug("Set theory: Packages in syncdb not in database") + in_sync_not_db = syncset - dbset + logger.info("%d packages in sync not db" % len(in_sync_not_db)) # Try to catch those random orphaning issues that make Eric so unhappy. if len(syncset) < len(dbset) * .5: @@ -181,9 +187,6 @@ def db_update(archname, pkgs): if len(syncset) < len(dbset) * .75: logger.warning(".db.tar.gz has 75% the number of packages in the web database.") - # packages in syncdb and not in database (add to database) - logger.debug("Set theory: Packages in syncdb not in database") - in_sync_not_db = syncset - dbset for p in [x for x in pkgs if x.name in in_sync_not_db]: logger.debug("Adding package %s", p.name) ## note: maintainer is being set to orphan for now -- cgit v1.2.3-24-g4f1b