From 0a9883a8dc20cf44295b9e920fb98dc2970a46fc Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Mon, 12 Aug 2024 17:12:19 +1000 Subject: [PATCH] cmd/update-report: don't output cask updates on linux --- Library/Homebrew/cmd/update-report.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb index 7bd939f1ffc6a..4d664f2d5b9d0 100644 --- a/Library/Homebrew/cmd/update-report.rb +++ b/Library/Homebrew/cmd/update-report.rb @@ -820,6 +820,8 @@ def dump_new_formula_report end def dump_new_cask_report + return if Homebrew::SimulateSystem.simulating_or_running_on_linux? + casks = select_formula_or_cask(:AC).sort.filter_map do |name| name.split("/").last unless cask_installed?(name) end @@ -836,6 +838,8 @@ def dump_deleted_formula_report end def dump_deleted_cask_report + return if Homebrew::SimulateSystem.simulating_or_running_on_linux? + casks = select_formula_or_cask(:DC).sort.filter_map do |name| name = name.split("/").last pretty_uninstalled(name) if cask_installed?(name)