From 7d474c09fda627094f102fa6edd994d8b7cbf2f4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 30 Jan 2020 09:59:05 +0100 Subject: lib/common-functions: add TODO about intentions-queue --- bin/db-update | 2 ++ bin/return-assignment | 2 ++ lib/common-functions | 22 ++++++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/bin/db-update b/bin/db-update index 738f3d6..51114f0 100755 --- a/bin/db-update +++ b/bin/db-update @@ -9,6 +9,8 @@ # TODO: make (all) locking less restrictive +# TODO: use the intention-queue + # shellcheck disable=SC2039,SC2119,SC2120 # shellcheck source=../lib/load-configuration diff --git a/bin/return-assignment b/bin/return-assignment index 831af1a..ec1673a 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -21,6 +21,8 @@ # TODO: remove hard-coded package suffixes +# TODO: use the intention-queue + # shellcheck disable=SC2119,SC2120 # shellcheck source=../lib/load-configuration diff --git a/lib/common-functions b/lib/common-functions index e7e44b9..358b30b 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -11,6 +11,28 @@ fi # TODO: remove hard-coded package suffixes +# TODO: Create an intentions-queue: It should handle all mysql and +# master mirror interactions which interact with each other or other +# local actions (repo-add, repo-remove, ...). +# Design idea: Create enumerated shell scripts which do the right thing +# and remove themself after successful execution. +# return-assignment would create the following scripts: +# 1. get lock +# 2. download database from mirror +# 3. update package database +# 4. update mysql database +# 5. upload database and package to mirror +# 6. release lock +# db-update would create the following scripts: +# 1. get lock +# 2. determine, what needs to be done (and create script 3-8 accordingly) +# 3. download database from mirror +# 4. update package database +# 5. update mysql database +# 6. upload database to mirror +# 7. update packages on mirror +# 8. release lock + # find_pkgbuilds package repository git_repository git_revision mod_git_revision # find the PKGBUILD and modification of $package from $repository # sets $PKGBUILD and $PKGBUILD_mod -- cgit v1.2.3