Francois Gouget : testbot: Give a '.diff' extension to the mailed-in patches.

Alexandre Julliard julliard at winehq.org
Mon Mar 25 13:55:05 CDT 2013


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Sun Mar 24 23:38:24 2013 +0100

testbot: Give a '.diff' extension to the mailed-in patches.

This way the web server knows what MIME type to give them and they get opened in an editor on download.

---

 testbot/lib/WineTestBot/Patches.pm |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/testbot/lib/WineTestBot/Patches.pm b/testbot/lib/WineTestBot/Patches.pm
index 11c355f..c2262c7 100644
--- a/testbot/lib/WineTestBot/Patches.pm
+++ b/testbot/lib/WineTestBot/Patches.pm
@@ -207,12 +207,12 @@ sub Submit
     my $NewStep = $Steps->Add();
     # Create a link to the patch file in the staging dir
     my $FileNameRandomPart = GenerateRandomString(32);
-    while (-e ("$DataDir/staging/${FileNameRandomPart}_patch"))
+    while (-e ("$DataDir/staging/${FileNameRandomPart}_patch.diff"))
     {
       $FileNameRandomPart = GenerateRandomString(32);
     }
-    link $PatchFileName, "$DataDir/staging/${FileNameRandomPart}_patch";
-    $NewStep->FileName($FileNameRandomPart . " patch");
+    link $PatchFileName, "$DataDir/staging/${FileNameRandomPart}_patch.diff";
+    $NewStep->FileName($FileNameRandomPart . " patch.diff");
     my @Keys = keys %{$Targets{$BaseName}};
     $NewStep->FileType($Targets{$BaseName}{$Keys[0]});
     $NewStep->InStaging(1);




More information about the wine-cvs mailing list