1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-21 14:54:14 +01:00

Fixed buildbot upload for OS X with horrible workaround (r=dvander).

This commit is contained in:
Scott Ehlert 2010-05-15 18:31:36 -05:00
parent 126f9706d6
commit 970a833176

View File

@ -67,6 +67,13 @@ else
my ($major,$minor) = ($version =~ /^(\d+)\.(\d+)/);
$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);
$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";
$ftp->close();
}
print "File sent to drop site as $filename -- build succeeded.\n";