Skip to content

Commit c97e75c

Browse files
committed
On ruby 1.8.7 a Tempfile can be unlinked only once
1 parent 752b775 commit c97e75c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubygems/ext/ext_conf_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def self.build(extension, directory, dest_path, results, args=[])
5757
ENV["DESTDIR"] = destdir
5858
end
5959
end
60-
t.unlink if t
60+
t.unlink if t and t.path
6161
ensure
6262
FileUtils.rm_rf tmp_dest if tmp_dest
6363
end

0 commit comments

Comments
 (0)