From 584cced003ae7021e8b461849eb7ffc60eae2323 Mon Sep 17 00:00:00 2001 From: Kevin Abel Date: Fri, 17 Aug 2018 23:13:23 -0500 Subject: [PATCH] Remove the chdir call that was already moved to the ancestor 528b4b367ed2a4026c321e2f2e503ace4548b9d2 moved the chdir definition to the parent class and call it in the parent's stage. chdir was getting called twice for archives with two nested directories. --- Library/Homebrew/download_strategy.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 198b7827ce..256af3b32a 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -197,11 +197,6 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy @temporary_path = Pathname.new("#{cached_location}.incomplete") end - def stage - super - chdir - end - private def ext