mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Fix hardcoded device.json path in commands/list.rb (#9523)
This commit is contained in:
committed by
GitHub
parent
babb8e90cf
commit
c6e3570062
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user