Fix one missed testing repo check

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2010-03-10 20:45:13 -06:00
parent 5f9d98d407
commit 73baf1b967

View File

@ -228,7 +228,7 @@ def db_update(archname, pkgs, options):
# produce a lot of false positives (or a div by zero). fake it
dbpercent = 100.0
logger.info("DB package ratio: %.1f%%" % dbpercent)
if dbpercent < 50.0 and repository.name.lower().find('testing') == -1:
if dbpercent < 50.0 and not repository.testing:
logger.error(".db.tar.gz has %.1f%% the number of packages in the web database" % dbpercent)
raise SomethingFishyException(
'It looks like the syncdb is less than half the size of the web db. WTF?')