File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -518,19 +518,19 @@ touch-unicode-files:
518
518
end
519
519
vcs . after_export ( "." ) if exported
520
520
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" )
523
522
if File . exist? ( "gems/bundled_gems" )
524
523
gems = Dir . glob ( "gems/*.gem" )
525
524
gems -= File . readlines ( "gems/bundled_gems" ) . map { |line |
526
525
next if /^\s *(?:#|$)/ =~ line
527
526
name , version , _ = line . split ( ' ' )
528
527
"gems/#{ name } -#{ version } .gem"
529
528
}
530
- FileUtils . rm_f ( gems )
529
+ clean . concat ( gems )
531
530
else
532
- FileUtils . rm_rf ( "gems" )
531
+ clean . add ( "gems" )
533
532
end
533
+ FileUtils . rm_rf ( clean )
534
534
if modified
535
535
touch_all ( modified , "**/*/" , 0 ) do |name , stat |
536
536
stat . mtime > modified
You can’t perform that action at this time.
0 commit comments