summaryrefslogtreecommitdiff
path: root/scripts/reporead.py
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-09-12 20:37:08 -0400
committerDusty Phillips <buchuki@gmail.com>2008-09-12 20:37:08 -0400
commit355ca8a7a471094dd4630f669e303da3ff807d6d (patch)
tree2f2bb26057abc0a5f82dea3683c64ba357c57dc3 /scripts/reporead.py
parent003f7596dbb374ab86b725b4327fc6644677faae (diff)
add some extra debugging output
Diffstat (limited to 'scripts/reporead.py')
-rwxr-xr-xscripts/reporead.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/reporead.py b/scripts/reporead.py
index 40f1e980..46ab0090 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