diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-09-13 02:37:08 +0200 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-09-13 02:37:08 +0200 |
commit | 355ca8a7a471094dd4630f669e303da3ff807d6d (patch) | |
tree | 2f2bb26057abc0a5f82dea3683c64ba357c57dc3 /scripts | |
parent | 003f7596dbb374ab86b725b4327fc6644677faae (diff) | |
download | archweb-355ca8a7a471094dd4630f669e303da3ff807d6d.tar.gz archweb-355ca8a7a471094dd4630f669e303da3ff807d6d.tar.xz |
add some extra debugging output
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/reporead.py | 9 |
1 files changed, 6 insertions, 3 deletions
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 |