testbot: Give a '.diff' extension to the mailed-in patches.
Francois Gouget
fgouget at codeweavers.com
Sun Mar 24 17:38:24 CDT 2013
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 file 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);
--
1.7.10.4
More information about the wine-patches
mailing list