s3backup: Create temporary file in temp dir

This commit is contained in:
Shea Levy 2014-12-10 22:06:32 -05:00
parent 4190f5b00d
commit 208bbbb4b0

View file

@ -68,7 +68,7 @@ sub buildFinished {
}
my $build_id = $build->id;
my $tempdir = File::Temp->newdir("s3-backup-nars-$build_id" . "XXXXX");
my $tempdir = File::Temp->newdir("s3-backup-nars-$build_id" . "XXXXX", TMPDIR => 1);
my %seen = ();
# Upload nars and build narinfos