diff options
-rwxr-xr-x | tool/make-snapshot | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index e87356455b..5bd21158c6 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -311,6 +311,16 @@ def package(vcs, rev, destdir, tmp = nil) end vcs.after_export(".") if exported FileUtils.rm_rf(clean) + FileUtils.rm_rf(".downloaded-cache") + if File.exist?("gems/bundled_gems") + gems = Dir.glob("gems/*.gem") + gems -= File.readlines("gems/bundled_gems").map {|line| + 'gems/'+line.split(' ').join('-')+'.gem' + } + FileUtils.rm_f(gems) + else + FileUtils.rm_rf("gems") + end unless $?.success? puts " failed" return |