public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/auto-bootstraps/
Date: Sat, 24 Feb 2024 09:10:39 +0000 (UTC)	[thread overview]
Message-ID: <1708765836.7ebdd7c8577d15d7ddb31cd1cdc49d0fe715ad27.grobian@gentoo> (raw)

commit:     7ebdd7c8577d15d7ddb31cd1cdc49d0fe715ad27
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 24 09:09:15 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Feb 24 09:10:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=7ebdd7c8

scripts/auto-bootstraps/process_uploads: add local processing hook

log cleansing and distfile caching/processing is specific to the local
setup, allow to hook it in

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/auto-bootstraps/process_uploads.sh | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/scripts/auto-bootstraps/process_uploads.sh b/scripts/auto-bootstraps/process_uploads.sh
index ca39789510..dc858589a8 100755
--- a/scripts/auto-bootstraps/process_uploads.sh
+++ b/scripts/auto-bootstraps/process_uploads.sh
@@ -3,6 +3,16 @@
 UPLOADDIR="./uploads"
 RESULTSDIR="./results"
 
+if [[ -x ${BASH_SOURCE[0]%/*}/process_uploads_local.sh ]] ; then
+	source ${BASH_SOURCE[0]%/*}/process_uploads_local.sh
+fi
+
+if [[ $(type -t process_file) != function ]] ; then
+	process_file() {
+		return
+	}
+fi
+
 didsomething=
 for d in ${UPLOADDIR}/* ; do
 	if [[ ! -d "${d}" ]] ; then
@@ -30,17 +40,19 @@ for d in ${UPLOADDIR}/* ; do
 	# behind
 	mkdir "${RESULTSDIR}/${dir}"
 	for f in \
+		distfiles \
 		stage{1,2,3}.log \
 		.stage{1,2,3}-finished \
 		bootstrap-prefix.sh \
 		emerge.log \
 		startprefix \
 		elapsedtime \
-		make.conf \
-		distfiles ;
+		make.conf ;
 	do
-		[[ -e "${d}/${dir}/${f}" ]] && \
+		if [[ -e "${d}/${dir}/${f}" ]] ; then
 			mv "${d}/${dir}/${f}" "${RESULTSDIR}/${dir}"/
+			process_file "${RESULTSDIR}/${dir}/${f}"
+		fi
 	done
 	if [[ -e "${d}/${dir}/portage" ]] ; then
 		for pkg in "${d}/${dir}/portage"/*/* ; do


             reply	other threads:[~2024-02-24  9:10 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-24  9:10 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-13  6:34 [gentoo-commits] repo/proj/prefix:master commit in: scripts/auto-bootstraps/ Fabian Groffen
2025-04-13  6:34 Fabian Groffen
2024-06-16  7:47 Fabian Groffen
2024-04-05 15:09 Fabian Groffen
2024-04-05 11:45 Fabian Groffen
2024-04-02 17:31 Fabian Groffen
2024-03-30 12:13 Fabian Groffen
2024-03-28 16:12 Fabian Groffen
2024-03-02 12:57 Fabian Groffen
2024-02-05 11:54 Fabian Groffen
2024-01-29 18:59 Fabian Groffen
2024-01-15 10:37 Fabian Groffen
2024-01-14 10:48 Fabian Groffen
2024-01-14 10:46 Fabian Groffen
2024-01-14 10:46 Fabian Groffen
2023-08-31  6:36 Fabian Groffen
2023-06-20  9:08 Fabian Groffen
2023-06-20  8:34 Fabian Groffen
2023-05-31  9:19 Fabian Groffen
2023-05-30  6:01 Fabian Groffen
2023-05-26 14:33 Fabian Groffen
2023-05-26 14:30 Fabian Groffen
2022-05-31 11:10 Fabian Groffen
2022-05-31  9:16 Fabian Groffen
2021-12-30 12:25 Fabian Groffen
2021-12-07  8:35 Fabian Groffen
2021-02-20 14:19 Fabian Groffen
2021-02-05 17:48 Fabian Groffen
2021-01-17 18:42 Fabian Groffen
2021-01-10 10:53 Fabian Groffen
2021-01-05 19:09 Fabian Groffen
2021-01-05 19:09 Fabian Groffen
2020-12-09 15:19 Fabian Groffen
2020-12-09 12:20 Fabian Groffen
2020-12-08  7:26 Fabian Groffen
2020-11-28 10:03 Fabian Groffen
2020-11-28 10:02 Fabian Groffen
2020-11-27 10:58 Fabian Groffen
2020-11-27 10:58 Fabian Groffen
2020-11-24  9:27 Fabian Groffen
2020-06-07 12:12 Fabian Groffen
2020-06-01  8:56 Fabian Groffen
2020-06-01  8:37 Fabian Groffen
2020-06-01  7:47 Fabian Groffen
2019-07-14  9:07 Fabian Groffen
2019-07-02  9:37 Fabian Groffen
2019-07-02  9:37 Fabian Groffen
2019-07-02  9:04 Fabian Groffen
2019-06-21 19:01 Fabian Groffen
2019-06-18 10:42 Fabian Groffen
2019-06-16 18:44 Fabian Groffen
2019-06-14  9:30 Fabian Groffen
2019-06-14  7:50 Fabian Groffen
2019-06-13 19:21 Fabian Groffen
2019-06-06 18:56 Fabian Groffen
2019-05-22 20:12 Fabian Groffen
2019-05-22 17:33 Fabian Groffen
2019-03-22 14:13 Fabian Groffen
2019-03-14  8:15 Fabian Groffen
2019-03-06 11:24 Fabian Groffen
2019-03-06 11:18 Fabian Groffen
2019-03-06 11:09 Fabian Groffen
2019-03-06 11:09 Fabian Groffen
2019-03-06 11:09 Fabian Groffen
2019-02-21 16:36 Fabian Groffen
2019-02-21 16:31 Fabian Groffen
2019-02-21 11:38 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1708765836.7ebdd7c8577d15d7ddb31cd1cdc49d0fe715ad27.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox