aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-15 12:19:32 -0500
committerJack Nagel2014-04-15 12:19:32 -0500
commit25b9f83609086b152e2dfca3fab04ae85c58691d (patch)
treeed650b6d766cce19cbdcf6b8e95047ad82a3b39d /Library/Formula/python.rb
parent6e17e75807c8a0efdbebc63bf8500b2789f87078 (diff)
downloadhomebrew-25b9f83609086b152e2dfca3fab04ae85c58691d.tar.bz2
python: write distutils.cfg atomically
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index f05648b3e..5b4f214d8 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -176,8 +176,7 @@ class Python < Formula
# And now we write the distutils.cfg
cfg = lib_cellar/"distutils/distutils.cfg"
- cfg.delete if cfg.exist?
- cfg.write <<-EOF.undent
+ cfg.atomic_write <<-EOF.undent
[global]
verbose=1
[install]