commit:     2b50d2b710993fb6946081d8705564c992a9aae1
Author:     Alice Ferrazzi <alicef <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 22 20:24:12 2022 +0000
Commit:     Alice Ferrazzi <alicef <AT> gentoo <DOT> 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 <alicef <AT> 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}\" 
[email protected]
 
 

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`;

Reply via email to