Fix hardcoded device.json path in commands/list.rb (#9523)

This commit is contained in:
Maximilian Downey Twiss
2024-03-23 12:01:08 +11:00
committed by GitHub
parent babb8e90cf
commit c6e3570062
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ require_relative '../lib/package'
class Command
def self.list(available, installed, compatible, incompatible, verbose)
device_json = JSON.load_file('/usr/local/etc/crew/device.json', symbolize_names: true)
device_json = JSON.load_file(File.join(CREW_CONFIG_PATH, 'device.json'), symbolize_names: true)
installed_packages = {}
device_json[:installed_packages].each do |package|
installed_packages[package[:name]] = package[:version]

View File

@@ -1,7 +1,7 @@
# lib/const.rb
# Defines common constants used in different parts of crew
CREW_VERSION = '1.45.7'
CREW_VERSION = '1.45.8'
# kernel architecture
KERN_ARCH = `uname -m`.chomp