Francois Gouget : testbot: Use the configured mailing list name instead of hardcoding it.

Alexandre Julliard julliard at winehq.org
Thu Jan 23 15:46:59 CST 2020


Module: tools
Branch: master
Commit: e1c65f052bce31018416589f264400d320e05dec
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=e1c65f052bce31018416589f264400d320e05dec

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Jan 22 22:14:12 2020 +0100

testbot: Use the configured mailing list name instead of hardcoding it.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/lib/WineTestBot/Patches.pm | 2 +-
 testbot/web/JobDetails.pl          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testbot/lib/WineTestBot/Patches.pm b/testbot/lib/WineTestBot/Patches.pm
index 8a22d3a..d021f9c 100644
--- a/testbot/lib/WineTestBot/Patches.pm
+++ b/testbot/lib/WineTestBot/Patches.pm
@@ -158,7 +158,7 @@ sub Submit($$$)
   $Subject =~ s/\[PATCH[^\]]*]//i;
   $Subject =~ s/[[\(]?\d+\/\d+[\)\]]?//;
   $Subject =~ s/^\s*//;
-  $NewJob->Remarks(substr("[wine-patches] " . $Subject, 0,
+  $NewJob->Remarks(substr("[$PatchesMailingList] " . $Subject, 0,
                           $PropertyDescriptor->GetMaxLength()));
   $NewJob->Patch($self);
 
diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl
index 76de1bb..2909eb7 100644
--- a/testbot/web/JobDetails.pl
+++ b/testbot/web/JobDetails.pl
@@ -64,7 +64,7 @@ sub GetPageTitle($)
   my ($self) = @_;
 
   my $PageTitle = $self->{Job}->Remarks;
-  $PageTitle =~ s/^[[]wine-patches[]] //;
+  $PageTitle =~ s/^[[]\Q$PatchesMailingList\E[]] //;
   $PageTitle = "Job " . $self->{JobId} if ($PageTitle eq "");
   $PageTitle .= " - ${ProjectName} Test Bot";
   return $PageTitle;




More information about the wine-cvs mailing list