summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-10-13 19:38:42 -0500
committerDan McGee <dan@archlinux.org>2009-10-13 19:38:42 -0500
commitbcda0ab66b9722ae15c10645aa44bb1099d79a93 (patch)
tree99dea0632cf194acffc4a6a4dadbc7fbcae480a3 /main/models.py
parent7a2ae6b375410af1c34f65381b48ad5af21eb74d (diff)
reporead: don't blow up on division by zero
We didn't sanity check the length of the DB set, so if it was zero we would blow up. Add a sanity check and also limit the whole thing to only apply if there are > 20 packages in a given {repo, arch} combo. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
0 files changed, 0 insertions, 0 deletions