aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli
diff options
context:
space:
mode:
authorL. E. Segovia2017-11-28 13:00:08 +0000
committerL. E. Segovia2017-11-28 13:03:16 +0000
commitf3355b2a2c4a2128427af425efac1df5a336ba5e (patch)
treeb2e40a188f6f333182c1d56fdc3f29ab3e9025e5 /Library/Homebrew/cask/lib/hbc/cli
parent10a0662dc013d7fd6949dce0a1bb75a1ec2bf91a (diff)
downloadbrew-f3355b2a2c4a2128427af425efac1df5a336ba5e.tar.bz2
Stage to a different directory if upgrading Casks w/version :latest
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/upgrade.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb
index bd80ad690..808b64c4b 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb
@@ -55,14 +55,14 @@ module Hbc
new_cask_installer.fetch
- new_cask_installer.stage
-
# Move the old Cask's artifacts back to staging
old_cask_installer.start_upgrade
# And flag it so in case of error
started_upgrade = true
# Install the new Cask
+ new_cask_installer.stage
+
new_cask_installer.install_artifacts
new_artifacts_installed = true