summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-master-status2
-rwxr-xr-xbin/build-master-status-from-mysql2
-rwxr-xr-xbin/build-packages2
-rwxr-xr-xbin/calculate-dependent-packages4
-rwxr-xr-xbin/check-bugtracker2
-rwxr-xr-xbin/cleanup2
-rwxr-xr-xbin/db-update6
-rwxr-xr-xbin/get-package-updates2
-rwxr-xr-xbin/interpret-mail2
-rwxr-xr-xbin/prioritize-build-list2
-rwxr-xr-xbin/return-assignment2
-rwxr-xr-xbin/sanity-check2
-rwxr-xr-xbin/seed-build-list2
-rwxr-xr-xbin/show-dependencies2
-rwxr-xr-xbin/why-dont-you2
15 files changed, 32 insertions, 4 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 1672789..b117e4e 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -5,6 +5,8 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: replace by build-master-status-from-mysql
+
usage() {
>&2 echo ''
>&2 echo 'build-master-status: report about status of build master'
diff --git a/bin/build-master-status-from-mysql b/bin/build-master-status-from-mysql
index 44e07c1..16353dd 100755
--- a/bin/build-master-status-from-mysql
+++ b/bin/build-master-status-from-mysql
@@ -5,6 +5,8 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: add all (necessary) features from build-master-status
+
tmp_dir=$(mktemp -d 'tmp.build-master-status-from-mysql.XXXXXXXXXX' --tmpdir)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
diff --git a/bin/build-packages b/bin/build-packages
index 81afa7f..94292c7 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -10,6 +10,8 @@
# TODO: report back in regular intervals, so the build master can
# abort if the package is outdated and/or someone else finished it.
+# TODO: build other "architectures", too (pentium4, i486)
+
# shellcheck disable=SC2016
usage() {
>&2 echo ''
diff --git a/bin/calculate-dependent-packages b/bin/calculate-dependent-packages
index bfb87a1..3208e61 100755
--- a/bin/calculate-dependent-packages
+++ b/bin/calculate-dependent-packages
@@ -3,6 +3,10 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: save information in database
+
+# TODO: read information from database
+
if [ -s "${work_dir}/build-master-sanity" ]; then
>&2 echo 'Build master is not sane.'
exit
diff --git a/bin/check-bugtracker b/bin/check-bugtracker
index 46e78db..6b304e3 100755
--- a/bin/check-bugtracker
+++ b/bin/check-bugtracker
@@ -8,6 +8,8 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: read information from database
+
tmp_dir=$(mktemp -d 'tmp.check-bugtracker.XXXXXXXXXX' --tmpdir)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
diff --git a/bin/cleanup b/bin/cleanup
index 78daece..15b6fc9 100755
--- a/bin/cleanup
+++ b/bin/cleanup
@@ -5,6 +5,8 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: clean database, too
+
# we only clean if run interactive or if no one is logged in
if ! tty -s && \
[ -n "$(users)" ]; then
diff --git a/bin/db-update b/bin/db-update
index fe45f41..35fd223 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -20,11 +20,9 @@
# track packages in stable, too
# know _exactly_ in which repository the packages are
-# TODO: fully integrate database (in other scripts too) - e.g. rely on
-# info in db instead of state-files
+# TODO: save information in database
-# TODO: add possibility to manually clone a (binary) package (e.g.
-# for build-support) - this should also be possible via email
+# TODO: read information from database
# shellcheck disable=SC2039
# shellcheck source=conf/default.conf
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 55efee4..91fb6be 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -11,6 +11,8 @@
# TODO: test_exclusion does not yet cooperate with the database
+# TODO: read information from database
+
# shellcheck disable=SC2016
usage() {
>&2 echo ''
diff --git a/bin/interpret-mail b/bin/interpret-mail
index d16c07f..03336c2 100755
--- a/bin/interpret-mail
+++ b/bin/interpret-mail
@@ -5,6 +5,8 @@
# TODO: enable email interface to delete packages
+# TODO: read information from database (?)
+
if [ $# -ne 0 ]; then
>&2 echo ''
>&2 echo 'usage: interpret-mail'
diff --git a/bin/prioritize-build-list b/bin/prioritize-build-list
index 06d4c06..5655223 100755
--- a/bin/prioritize-build-list
+++ b/bin/prioritize-build-list
@@ -3,6 +3,8 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: save information in database
+
if [ $# -ne 1 ]; then
echo 'Usage: prioritize-build-list pkg-regex'
echo ' moves packages matching pkg-regex to front of build list'
diff --git a/bin/return-assignment b/bin/return-assignment
index 9de8add..42393ac 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -16,6 +16,8 @@
# TODO: sign database
+# TODO: read information from database
+
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
diff --git a/bin/sanity-check b/bin/sanity-check
index 8736d47..e31a5ba 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -5,6 +5,8 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: read information from database
+
usage() {
>&2 echo ''
>&2 echo 'sanity-check [options] [checks]: check sanity of build master'
diff --git a/bin/seed-build-list b/bin/seed-build-list
index cd3152d..08f6a42 100755
--- a/bin/seed-build-list
+++ b/bin/seed-build-list
@@ -5,6 +5,8 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: read information from database
+
# shellcheck disable=SC2016
usage() {
>&2 echo ''
diff --git a/bin/show-dependencies b/bin/show-dependencies
index efdf745..ee7db19 100755
--- a/bin/show-dependencies
+++ b/bin/show-dependencies
@@ -3,6 +3,8 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: read information from database
+
# Create a lock file.
if [ $# -eq 0 ]; then
diff --git a/bin/why-dont-you b/bin/why-dont-you
index 2e3ea86..830048b 100755
--- a/bin/why-dont-you
+++ b/bin/why-dont-you
@@ -7,6 +7,8 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+# TODO: read information from database
+
action="$1"
shift