diff options
author | Dan McGee <dan@archlinux.org> | 2010-03-10 20:45:13 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-03-10 20:45:13 -0600 |
commit | 73baf1b967f5d224842b880d33e636114c9995d9 (patch) | |
tree | 45934a3956b1c042ed0c1ee7a3c2401cef7e2dd2 /devel/management/commands | |
parent | 5f9d98d40740d36ada63f7ff3627b18f91a0fc9c (diff) |
Fix one missed testing repo check
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management/commands')
-rw-r--r-- | devel/management/commands/reporead.py | 2 |
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?') |