summaryrefslogtreecommitdiff
path: root/devel/management/commands/reporead.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-10 20:45:13 -0600
committerDan McGee <dan@archlinux.org>2010-03-10 20:45:13 -0600
commit73baf1b967f5d224842b880d33e636114c9995d9 (patch)
tree45934a3956b1c042ed0c1ee7a3c2401cef7e2dd2 /devel/management/commands/reporead.py
parent5f9d98d40740d36ada63f7ff3627b18f91a0fc9c (diff)
Fix one missed testing repo check
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management/commands/reporead.py')
-rw-r--r--devel/management/commands/reporead.py2
1 files changed, 1 insertions, 1 deletions
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?')