Simplify device.json handling in lib/fixup.rb (#12799)

* Properly interpolate the printed error message when save_json fails

* Fix CREW_ESSENTIAL_PACKAGES being nil on pre glibc standalone i686

* Simplify device.json handling in lib/fixup.rb, removing instance variables and shared state
This commit is contained in:
Maximilian Downey Twiss
2025-09-16 23:08:19 +10:00
committed by GitHub
parent c235ab2220
commit a545db0728
4 changed files with 40 additions and 76 deletions

View File

@@ -264,6 +264,9 @@ def update
# Do any fixups necessary after crew has updated from git.
load "#{CREW_LIB_PATH}/lib/fixup.rb"
# Reload device.json in case it was modified by lib/fixup.rb
@device = ConvenienceFunctions.load_symbolized_json
end
# check for outdated installed packages