summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-03-31 15:23:25 +0800
committerAndre Arko <andre@arko.net>2014-03-31 15:23:25 +0800
commit8592487aebe9aac85f338a99bb18f819673e8265 (patch)
tree59088d61d6da9cb49181d5c89d6fa601db2ba592
parentbec906d1a0146d4922782f9bd8dd6902687b14ad (diff)
downloadbundler-8592487aebe9aac85f338a99bb18f819673e8265.tar.gz
oh ffs why was that there
-rw-r--r--lib/bundler/installer.rb2
-rw-r--r--lib/bundler/source/rubygems.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index 3ad46cc026..5643b202aa 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -141,8 +141,6 @@ module Bundler
end
Bundler.ui.debug e.backtrace.join("\n")
raise Bundler::InstallError, msg
- ensure
- FileUtils.remove_entry_secure(Bundler.tmp)
end
def generate_bundler_executable_stubs(spec, options = {})
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index ab9a5f0389..c4a5849fa8 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -111,6 +111,8 @@ module Bundler
installed_spec.loaded_from = "#{Bundler.rubygems.gem_dir}/specifications/#{spec.full_name}.gemspec"
spec.loaded_from = "#{Bundler.rubygems.gem_dir}/specifications/#{spec.full_name}.gemspec"
["Installing #{version_message(spec)}", spec.post_install_message]
+ ensure
+ FileUtils.remove_entry_secure(install_path) if Bundler.requires_sudo?
end
def cache(spec, custom_path = nil)