lib/pkgforge/components/cleanup.rb in pkgforge-0.8.1 vs lib/pkgforge/components/cleanup.rb in pkgforge-0.8.3

- old
+ new

@@ -6,14 +6,12 @@ class Forge Contract None => nil def cleanup! @tmpdirs ||= {} @tmpfiles ||= {} - tmpfiles = @tmpfiles.dup - tmpfiles.delete(:tarball) - paths = [tmpfiles.values, @tmpdirs.values].flatten + paths = [@tmpfiles.values, @tmpdirs.values].flatten puts "Cleaning up tmp paths: #{paths}" - FileUtils.rm_r paths + FileUtils.rm_rf paths nil end end end