From 73baf1b967f5d224842b880d33e636114c9995d9 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 10 Mar 2010 20:45:13 -0600 Subject: Fix one missed testing repo check Signed-off-by: Dan McGee --- devel/management/commands/reporead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devel') diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 34b291eb..f83b127e 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -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?') -- cgit v1.2.3-54-g00ecf