diff options
author | Dan McGee <dan@archlinux.org> | 2009-10-13 19:38:42 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-10-13 19:38:42 -0500 |
commit | bcda0ab66b9722ae15c10645aa44bb1099d79a93 (patch) | |
tree | 99dea0632cf194acffc4a6a4dadbc7fbcae480a3 /packages/templatetags | |
parent | 7a2ae6b375410af1c34f65381b48ad5af21eb74d (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 'packages/templatetags')
0 files changed, 0 insertions, 0 deletions