Permalink
Browse files

When running in debug mode, do not remove temp files created

  • Loading branch information...
1 parent 7842a6c commit ef109721b9333217661b40b2e01047b8f9e6680c @vStone vStone committed Oct 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/fpm/package.rb
View
@@ -260,8 +260,8 @@ def build_path(path=nil)
# Clean up any temporary storage used by this class.
def cleanup
- cleanup_staging
- cleanup_build
+ cleanup_staging unless @logger.level == :debug
+ cleanup_build unless @logger.level == :debug
end # def cleanup
def cleanup_staging

0 comments on commit ef10972

Please sign in to comment.