From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B2D6E158094 for ; Fri, 22 Jul 2022 20:29:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDACDE0CAA; Fri, 22 Jul 2022 20:29:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 88AE0E0CAA for ; Fri, 22 Jul 2022 20:29:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 84015340C6C for ; Fri, 22 Jul 2022 20:29:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3B6C952B for ; Fri, 22 Jul 2022 20:29:44 +0000 (UTC) From: "Alice Ferrazzi" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alice Ferrazzi" Message-ID: <1658521578.2b50d2b710993fb6946081d8705564c992a9aae1.alicef@gentoo> Subject: [gentoo-commits] proj/linux-patches:genpatches-misc commit in: scripts/, web/ X-VCS-Repository: proj/linux-patches X-VCS-Files: scripts/gpdoemail web/email-announcement.pl X-VCS-Directories: scripts/ web/ X-VCS-Committer: alicef X-VCS-Committer-Name: Alice Ferrazzi X-VCS-Revision: 2b50d2b710993fb6946081d8705564c992a9aae1 X-VCS-Branch: genpatches-misc Date: Fri, 22 Jul 2022 20:29:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 35ce11f5-ff83-4427-a5d9-fb63a0c00cc4 X-Archives-Hash: 6ca04d2f8eb7370786b6dbfd6fa36fc3 commit: 2b50d2b710993fb6946081d8705564c992a9aae1 Author: Alice Ferrazzi gentoo org> AuthorDate: Fri Jul 22 20:24:12 2022 +0000 Commit: Alice Ferrazzi gentoo org> CommitDate: Fri Jul 22 20:26:18 2022 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2b50d2b7 Use USERNAME setting for set username on the email announcement As we are getting the username from genpatchesrc use it for the email web folder sent on the email announcement Signed-off-by: Alice Ferrazzi gentoo.org> scripts/gpdoemail | 2 +- web/email-announcement.pl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/gpdoemail b/scripts/gpdoemail index 42f67c42..1b89c601 100755 --- a/scripts/gpdoemail +++ b/scripts/gpdoemail @@ -12,7 +12,7 @@ email="${ECHANGELOG_USER#*<}" email="${email%>}" cd ${WEB_LOCAL} -perl email-announcement.pl $1 ${KERNEL_NAME} ${LOCAL_TMP} ${REMOTE_BASE} | +perl email-announcement.pl $1 ${KERNEL_NAME} ${LOCAL_TMP} ${REMOTE_BASE} ${name} | ${SENDMAIL} -F \"${name}\" -f \"${email}\" gentoo-kernel@lists.gentoo.org diff --git a/web/email-announcement.pl b/web/email-announcement.pl index 011e15fe..b921f732 100755 --- a/web/email-announcement.pl +++ b/web/email-announcement.pl @@ -8,6 +8,7 @@ $tag = shift; $kernel_name = shift; $LOCAL_TMP = shift; $REMOTE_BASE = shift; +$USERNAME = shift; if ($tag =~ m/(2\.6\.\d+)-(\d+)/) { $ver = $1; @@ -20,7 +21,7 @@ else { # support for kernels >= 3.0 } $have_history = 0; -$website_base = 'http://dev.gentoo.org/~mpagano/genpatches'; +$website_base = 'http://dev.gentoo.org/~'.${USERNAME}.'/genpatches'; $result = `rm -rf ${LOCAL_TMP}/linux-patches`; $result = `cd $LOCAL_TMP`;