diff --git a/lib/executables_db.rb b/lib/executables_db.rb index 04f0c1a0..464748a2 100644 --- a/lib/executables_db.rb +++ b/lib/executables_db.rb @@ -59,7 +59,7 @@ def update!(update_existing: false, install_missing: false, max_downloads: nil, # Evaluate only the core tap by default. taps = eval_all ? Tap.each.to_a : [CoreTap.instance] - Tap.each do |tap| + taps.each do |tap| tap.formula_files_by_name.each do |name, path| f = Formulary.load_formula_from_path(name, path) diff --git a/lib/which_update.rb b/lib/which_update.rb index b6237db3..23593fbd 100755 --- a/lib/which_update.rb +++ b/lib/which_update.rb @@ -48,7 +48,8 @@ def update_and_save!(source: nil, commit: false, update_existing: false, install max_downloads: nil, eval_all: false) source ||= default_source db = ExecutablesDB.new source - db.update!(update_existing: update_existing, install_missing: install_missing, max_downloads: max_downloads, eval_all: eval_all) + db.update!(update_existing: update_existing, install_missing: install_missing, + max_downloads: max_downloads, eval_all: eval_all) db.save! return if !commit || !db.changed?