lib/fig/repository.rb in fig-0.1.12 vs lib/fig/repository.rb in fig-0.1.13

- old
+ new

@@ -84,11 +84,11 @@ false end end if resources.size > 0 file = "resources.tar.gz" - file unless system "tar -zcf #{file} #{resources.join(' ')}" + @os.create_archive(file, resources.join(' ')) new_package_statements.unshift(Archive.new(file)) at_exit { File.delete(file) } end new_package_statements end @@ -177,10 +177,10 @@ end local_dir = local_dir_for_package(package_name, version_name) @os.clear_directory(local_dir) # some packages contain no files, only a fig file. if not (package.archive_urls.empty? && package.resource_urls.empty?) - @os.exec(temp_dir, "mv * #{local_dir}/") + FileUtils.mv(Dir.glob(File.join(temp_dir, "*")), local_dir) end write_local_package(package_name, version_name, package) rescue $stderr.puts "install failed, cleaning up" delete_local_package(package_name, version_name)