lib/fig/repository.rb in fig-0.1.52 vs lib/fig/repository.rb in fig-0.1.53

- old
+ new

@@ -29,11 +29,11 @@ @remote_repository_url = remote_repository_url @remote_repository_user = remote_repository_user @update = update @update_if_missing = update_if_missing - @parser = Parser.new(@application_config) + @parser = Parser.new(application_config) @packages = PackageCache.new() end def list_packages results = [] @@ -173,10 +173,12 @@ rescue Logging.fatal 'Install failed, cleaning up.' delete_local_package(package_name, version_name) raise RepositoryError.new ensure - FileUtils.rm_rf(temp_dir) + if temp_dir + FileUtils.rm_rf(temp_dir) + end end end def update_package(package_name, version_name) remote_fig_file = remote_fig_file_for_package(package_name, version_name)