Miscellaneous crew changes (#9311)

* Make greater use of File.join when loading device.json

* Remove redundant check that the compatibility property exists (already checked by prop_test as part of CI)

* Don't pass architecture to lib/package.rb

* Replace @device[:architecture] with ARCH, do not create architecture section in device.json

* Refactor getting urls and sha256s in package.rb

* Use inplace sort on installed_packages instead of creating sorted_installed_packages

* Rework load_package to always only take one argument

* Only rescue package loading errors in set_package

* Remove generate_compatible

* Replace all calls to load_package with set_package

* Use _args instead of _ in prop_command

* Merge @short_verbose and @verbose

* Simplify filename detection in download

* Bump crew version
This commit is contained in:
Maximilian Downey Twiss
2024-02-13 04:38:18 +11:00
committed by GitHub
parent 59370bd08b
commit 7a5eff8945
6 changed files with 78 additions and 151 deletions

View File

@@ -16,8 +16,7 @@ puts "Running dependency cycle tests...\n".yellow
# Loads all packages
Dir['../packages/*.rb'].each do |filename|
name = File.basename(filename, '.rb')
pkg = Package.load_package(filename, name)
pkg = Package.load_package(filename)
@all_pkgs[name] = pkg
end