Skip to content

Commit 7c98d52

Browse files
committed
[Bug #19892] Clean intermediate files regardless -keep_temp
Not to include such files in the result packages.
1 parent 7ba88e1 commit 7c98d52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tool/make-snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,19 +518,19 @@ touch-unicode-files:
518518
end
519519
vcs.after_export(".") if exported
520520
clean.concat(Dir.glob("ext/**/autom4te.cache"))
521-
FileUtils.rm_rf(clean) unless $keep_temp
522-
FileUtils.rm_rf(".downloaded-cache")
521+
clean.add(".downloaded-cache")
523522
if File.exist?("gems/bundled_gems")
524523
gems = Dir.glob("gems/*.gem")
525524
gems -= File.readlines("gems/bundled_gems").map {|line|
526525
next if /^\s*(?:#|$)/ =~ line
527526
name, version, _ = line.split(' ')
528527
"gems/#{name}-#{version}.gem"
529528
}
530-
FileUtils.rm_f(gems)
529+
clean.concat(gems)
531530
else
532-
FileUtils.rm_rf("gems")
531+
clean.add("gems")
533532
end
533+
FileUtils.rm_rf(clean)
534534
if modified
535535
touch_all(modified, "**/*/", 0) do |name, stat|
536536
stat.mtime > modified

0 commit comments

Comments
 (0)