mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-07 10:28:30 +00:00
Fixed buildbot upload for OS X with horrible workaround (r=dvander).
This commit is contained in:
parent
517a82594a
commit
2f412f5d2d
@ -67,6 +67,13 @@ else
|
|||||||
my ($major,$minor) = ($version =~ /^(\d+)\.(\d+)/);
|
my ($major,$minor) = ($version =~ /^(\d+)\.(\d+)/);
|
||||||
$ftp_path .= "/$major.$minor";
|
$ftp_path .= "/$major.$minor";
|
||||||
|
|
||||||
|
if ($^O eq "darwin")
|
||||||
|
{
|
||||||
|
# Horrible workaround for weird upload failure
|
||||||
|
system("ftp -Vu ftp://$ftp_user:$ftp_pass\@$ftp_host/$ftp_path/$filename $filename");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
my ($ftp);
|
my ($ftp);
|
||||||
|
|
||||||
$ftp = Net::FTP->new($ftp_host, Debug => 0)
|
$ftp = Net::FTP->new($ftp_host, Debug => 0)
|
||||||
@ -86,6 +93,7 @@ $ftp->put($filename)
|
|||||||
or die "Cannot drop file $filename ($ftp_path): " . $ftp->message . "\n";
|
or die "Cannot drop file $filename ($ftp_path): " . $ftp->message . "\n";
|
||||||
|
|
||||||
$ftp->close();
|
$ftp->close();
|
||||||
|
}
|
||||||
|
|
||||||
print "File sent to drop site as $filename -- build succeeded.\n";
|
print "File sent to drop site as $filename -- build succeeded.\n";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user