euscanwww: Prevent not deterministic QuerySet order when slicing

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-07-27 11:37:58 +02:00
parent 04265dacff
commit 31e3dd66d8

View File

@ -173,7 +173,7 @@ def update_portage(packages=None):
@task
def update_upstream():
if settings.TASKS_UPSTREAM_GROUPS >= 1:
packages = Package.objects.all()
packages = Package.objects.all().order_by("pk")
scan_upstream_sub = group_chunks(scan_upstream, packages,
settings.TASKS_UPSTREAM_GROUPS,