From 8108106cf9fd651c42a11523939c9c07fa1df1cc Mon Sep 17 00:00:00 2001
From: Mike McQuaid <mike@mikemcquaid.com>
Date: Wed, 1 Jun 2016 12:47:56 +0100
Subject: [PATCH] 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.
---
 Library/Homebrew/cmd/update-report.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb
index 2d6a8f78a6..4de380a772 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
-- 
GitLab