From 79b303a1fce2ac4f5882d6946b8b65e8df4c3bda Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 12 Sep 2010 14:00:48 -0700 Subject: [PATCH] Send string, not pathname, to Minitar for decompression --- lib/vagrant/action/box/unpackage.rb | 2 +- test/vagrant/action/box/unpackage_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/action/box/unpackage.rb b/lib/vagrant/action/box/unpackage.rb index 9186ef594..2b4f436ac 100644 --- a/lib/vagrant/action/box/unpackage.rb +++ b/lib/vagrant/action/box/unpackage.rb @@ -46,7 +46,7 @@ module Vagrant def decompress Dir.chdir(@env["box"].directory) do @env.ui.info "vagrant.actions.box.unpackage.extracting" - Archive::Tar::Minitar.unpack(@env["download.temp_path"], @env["box"].directory) + Archive::Tar::Minitar.unpack(@env["download.temp_path"], @env["box"].directory.to_s) end end end diff --git a/test/vagrant/action/box/unpackage_test.rb b/test/vagrant/action/box/unpackage_test.rb index 7210e2653..feafb556d 100644 --- a/test/vagrant/action/box/unpackage_test.rb +++ b/test/vagrant/action/box/unpackage_test.rb @@ -70,7 +70,7 @@ class UnpackageBoxActionTest < Test::Unit::TestCase end should "open the tar file within the new directory, and extract it all" do - Archive::Tar::Minitar.expects(:unpack).with(@env["download.temp_path"], @env["box"].directory).once + Archive::Tar::Minitar.expects(:unpack).with(@env["download.temp_path"], @env["box"].directory.to_s).once @instance.decompress end end