aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'euscanwww/djeuscan/tasks.py')
-rw-r--r--euscanwww/djeuscan/tasks.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/euscanwww/djeuscan/tasks.py b/euscanwww/djeuscan/tasks.py
index 93adeac..581d6b0 100644
--- a/euscanwww/djeuscan/tasks.py
+++ b/euscanwww/djeuscan/tasks.py
@@ -185,11 +185,18 @@ def update_portage(packages=None):
prefetch=True
)
scan_metadata(packages=None, populate=True)
- if updated_packages:
- group_chunks(scan_upstream, updated_packages,
- settings.TASKS_UPSTREAM_GROUPS,
- purge_versions=True)()
- update_counters(fast=False)
+
+ if not updated_packages:
+ # Simple/Fast path
+ update_counters(fast=False)
+ return
+
+ (
+ group_chunks(scan_upstream, updated_packages,
+ settings.TASKS_UPSTREAM_GROUPS,
+ purge_versions=True) |
+ update_counters.si(fast=False)
+ )()
""" Currently broken
update_portage_trees()