diff --git a/docs/Homebrew/Cleanup.html b/docs/Homebrew/Cleanup.html index b1c20b979..6ee893eb3 100644 --- a/docs/Homebrew/Cleanup.html +++ b/docs/Homebrew/Cleanup.html @@ -1323,10 +1323,6 @@

 
 
-676
-677
-678
-679
 680
 681
 682
@@ -1357,10 +1353,14 @@ 

707 708 709 -710

+710 +711 +712 +713 +714 -
# File 'cleanup.rb', line 676
+      
# File 'cleanup.rb', line 680
 
 def self.autoremove(dry_run: false)
   require "utils/autoremove"
@@ -2255,20 +2255,20 @@ 

 
 
-375
-376
-377
-378
 379
 380
 381
 382
 383
 384
-385
+385 +386 +387 +388 +389

-
# File 'cleanup.rb', line 375
+      
# File 'cleanup.rb', line 379
 
 def cache_files
   files = cache.directory? ? cache.children : []
@@ -2371,7 +2371,11 @@ 

334 335 336 -337

+337 +338 +339 +340 +341
# File 'cleanup.rb', line 281
@@ -2385,7 +2389,11 @@ 

cleanup_formula(formula, quiet:, ds_store: false, cache_db: false) end - Cleanup.autoremove(dry_run: dry_run?) if Homebrew::EnvConfig.autoremove? + if ENV["HOMEBREW_AUTOREMOVE"].present? + opoo "HOMEBREW_AUTOREMOVE is now a no-op as it is the default behaviour. " \ + "Set HOMEBREW_NO_AUTOREMOVE=1 to disable it." + end + Cleanup.autoremove(dry_run: dry_run?) unless Homebrew::EnvConfig.no_autoremove? cleanup_cache cleanup_empty_api_source_directories @@ -2467,15 +2475,15 @@

 
 
-525
-526
-527
-528
 529
-530
+530 +531 +532 +533 +534

-
# File 'cleanup.rb', line 525
+      
# File 'cleanup.rb', line 529
 
 def cleanup_bootsnap
   bootsnap = cache/"bootsnap"
@@ -2517,10 +2525,6 @@ 

 
 
-425
-426
-427
-428
 429
 430
 431
@@ -2542,10 +2546,14 @@ 

447 448 449 -450

+450 +451 +452 +453 +454

-
# File 'cleanup.rb', line 425
+      
# File 'cleanup.rb', line 429
 
 def cleanup_cache(entries = nil)
   entries ||= cache_files
@@ -2607,10 +2615,6 @@ 

 
 
-532
-533
-534
-535
 536
 537
 538
@@ -2624,10 +2628,14 @@ 

546 547 548 -549

+549 +550 +551 +552 +553

-
# File 'cleanup.rb', line 532
+      
# File 'cleanup.rb', line 536
 
 def cleanup_cache_db(rack = nil)
   FileUtils.rm_rf [
@@ -2681,14 +2689,14 @@ 

 
 
-352
-353
-354
-355
-356
+356 +357 +358 +359 +360

-
# File 'cleanup.rb', line 352
+      
# File 'cleanup.rb', line 356
 
 def cleanup_cask(cask, ds_store: true)
   cleanup_cache(Pathname.glob(cache/"Cask/#{cask.token}--*").map { |path| { path:, type: :cask } })
@@ -2729,20 +2737,20 @@ 

-387 -388 -389 -390 391 392 393 394 395 396 -397

+397 +398 +399 +400 +401
-
# File 'cleanup.rb', line 387
+      
# File 'cleanup.rb', line 391
 
 def cleanup_empty_api_source_directories(directory = cache/"api-source")
   return if dry_run?
@@ -2789,17 +2797,17 @@ 

 
 
-343
-344
-345
-346
 347
 348
 349
-350
+350 +351 +352 +353 +354

-
# File 'cleanup.rb', line 343
+      
# File 'cleanup.rb', line 347
 
 def cleanup_formula(formula, quiet: false, ds_store: true, cache_db: true)
   formula.eligible_kegs_for_cleanup(quiet:)
@@ -2843,15 +2851,15 @@ 

 
 
-358
-359
-360
-361
 362
-363
+363 +364 +365 +366 +367

-
# File 'cleanup.rb', line 358
+      
# File 'cleanup.rb', line 362
 
 def cleanup_keg(keg)
   cleanup_path(keg) { keg.uninstall(raise_failures: true) }
@@ -2893,10 +2901,6 @@ 

 
 
-466
-467
-468
-469
 470
 471
 472
@@ -2908,10 +2912,14 @@ 

478 479 480 -481

+481 +482 +483 +484 +485

-
# File 'cleanup.rb', line 466
+      
# File 'cleanup.rb', line 470
 
 def cleanup_lockfiles(*lockfiles)
   return if dry_run?
@@ -2963,18 +2971,18 @@ 

 
 
-365
-366
-367
-368
 369
 370
 371
 372
-373
+373 +374 +375 +376 +377

-
# File 'cleanup.rb', line 365
+      
# File 'cleanup.rb', line 369
 
 def cleanup_logs
   return unless HOMEBREW_LOGS.directory?
@@ -3019,10 +3027,6 @@ 

 
 
-452
-453
-454
-455
 456
 457
 458
@@ -3031,10 +3035,14 @@ 

461 462 463 -464

+464 +465 +466 +467 +468

-
# File 'cleanup.rb', line 452
+      
# File 'cleanup.rb', line 456
 
 def cleanup_path(path)
   return unless path.exist?
@@ -3083,10 +3091,6 @@ 

 
 
-483
-484
-485
-486
 487
 488
 489
@@ -3119,10 +3123,14 @@ 

516 517 518 -519

+519 +520 +521 +522 +523

-
# File 'cleanup.rb', line 483
+      
# File 'cleanup.rb', line 487
 
 def cleanup_portable_ruby
   vendor_dir = HOMEBREW_LIBRARY/"Homebrew/vendor"
@@ -3195,10 +3203,6 @@ 

 
 
-565
-566
-567
-568
 569
 570
 571
@@ -3242,10 +3246,14 @@ 

609 610 611 -612

+612 +613 +614 +615 +616

-
# File 'cleanup.rb', line 565
+      
# File 'cleanup.rb', line 569
 
 def cleanup_python_site_packages
   pyc_files = Hash.new { |h, k| h[k] = [] }
@@ -3329,10 +3337,6 @@ 

 
 
-399
-400
-401
-402
 403
 404
 405
@@ -3353,10 +3357,14 @@ 

420 421 422 -423

+423 +424 +425 +426 +427

-
# File 'cleanup.rb', line 399
+      
# File 'cleanup.rb', line 403
 
 def cleanup_unreferenced_downloads
   return if dry_run?
@@ -3523,10 +3531,6 @@