summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-10-14 02:38:42 +0200
committerDan McGee <dan@archlinux.org>2009-10-14 02:38:42 +0200
commitbcda0ab66b9722ae15c10645aa44bb1099d79a93 (patch)
tree99dea0632cf194acffc4a6a4dadbc7fbcae480a3 /main
parent7a2ae6b375410af1c34f65381b48ad5af21eb74d (diff)
downloadarchweb-bcda0ab66b9722ae15c10645aa44bb1099d79a93.tar.gz
archweb-bcda0ab66b9722ae15c10645aa44bb1099d79a93.tar.xz
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')
0 files changed, 0 insertions, 0 deletions