commit:     1d9d4179e986e784276ad1194b06f02b997b4bca
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 29 20:47:04 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 20:52:15 2024 +0000
URL:        https://gitweb.gentoo.org/proj/binhost.git/commit/?id=1d9d4179

builders: compress build log before uploading to paste.gentoo.zip

As requested by Eli.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 builders/jiji/binhost-update  | 2 +-
 builders/milou/binhost-update | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/builders/jiji/binhost-update b/builders/jiji/binhost-update
index f2da664..ee5a395 100755
--- a/builders/jiji/binhost-update
+++ b/builders/jiji/binhost-update
@@ -24,7 +24,7 @@ send_email() {
         local body
 
         if [ -n "${logfile}" ]; then
-                url=$(curl -F "_=@${logfile}" https://paste.gentoo.zip)
+                url=$(xz -c "${logfile}" | curl -F "_=<-" 
https://paste.gentoo.zip)
                 body=$(printf '%b\n\n\n' "${message}"; tail -n 500 
"${logfile}"; printf '\n\n\nFull build log at %s (download: %s)\n' "${logfile}" 
"${url}")
         else
                 body=${message}

diff --git a/builders/milou/binhost-update b/builders/milou/binhost-update
index e64cd1e..e6306fe 100755
--- a/builders/milou/binhost-update
+++ b/builders/milou/binhost-update
@@ -41,7 +41,7 @@ send_email() {
         local body
 
         if [ -n "${logfile}" ]; then
-                url=$(curl -F "_=@${logfile}" https://paste.gentoo.zip)
+                url=$(xz -c "${logfile}" | curl -F "_=<-" 
https://paste.gentoo.zip)
                 body=$(printf '%b\n\n\n' "${message}"; tail -n 500 
"${logfile}"; printf '\n\n\nFull build log at %s (download: %s)\n' "${logfile}" 
"${url}")
         else
                 body=${message}

Reply via email to