aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-06-01 12:47:56 +0100
committerMike McQuaid2016-06-01 12:47:56 +0100
commit8108106cf9fd651c42a11523939c9c07fa1df1cc (patch)
tree2da16123017880767928cf5f644ba82bc2e2186e /Library
parent9085e67e80457490e7e7fc1797fa4775f9b7b3db (diff)
downloadbrew-8108106cf9fd651c42a11523939c9c07fa1df1cc.tar.bz2
update-report: recreate migration_attempted_file.
If the deletion of `HOMEBREW_CACHE` fails then the `.migration_attempted` file will have still been deleted so ensure it is recreated.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update-report.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb
index 2d6a8f78a..4de380a77 100644
--- a/Library/Homebrew/cmd/update-report.rb
+++ b/Library/Homebrew/cmd/update-report.rb
@@ -149,6 +149,7 @@ module Homebrew
else
ohai "Deleting #{legacy_cache}..."
FileUtils.rm_rf legacy_cache
+ FileUtils.touch migration_attempted_file if legacy_cache.exist?
end
end
end