From dacb57fb0a1e3c1413d3193bf54216498b42637c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 26 Feb 2024 11:39:08 +0100 Subject: [PATCH] Split apps_cache call, run apps_cache update when updating sources, and run -jfaster --- rebuild.sh | 3 ++- sourcesautoupdate.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rebuild.sh b/rebuild.sh index 4417a728..b98cb7f0 100644 --- a/rebuild.sh +++ b/rebuild.sh @@ -8,4 +8,5 @@ date >> $log git pull &>/dev/null cat cron | sed "s@__BASEDIR__@$workdir@g" > /etc/cron.d/app_list -./tools/list_builder.py &>> $log || sendxmpppy "[listbuilder] Rebuilding the application list failed miserably" +./tools/app_caches.py -j40 &>> $log || sendxmpppy "[listbuilder] Downloading the apps caches failed miserably" +./tools/list_builder.py -j10 --no-update-cache &>> $log || sendxmpppy "[listbuilder] Rebuilding the application list failed miserably" diff --git a/sourcesautoupdate.sh b/sourcesautoupdate.sh index e431f89b..1368bc0c 100644 --- a/sourcesautoupdate.sh +++ b/sourcesautoupdate.sh @@ -8,6 +8,8 @@ date >> $log git pull &>/dev/null cat cron | sed "s@__BASEDIR__@$workdir@g" > /etc/cron.d/app_list +./tools/app_caches.py -j40 &>> $log || sendxmpppy "[appsourcesautoupdate] Downloading the apps caches failed miserably" + python3 tools/autoupdate_app_sources/autoupdate_app_sources.py \ --edit --commit --pr --paste -j1 \ &> $log || sendxmpppy "[appsourcesautoupdate] App sources auto-update failed miserably"