mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -05:00
crew: Fix crew build
Signed-off-by: SupeChicken666 <me@supechicken666.dev>
This commit is contained in:
2
bin/crew
2
bin/crew
@@ -1391,7 +1391,7 @@ def resolve_dependencies_and_build
|
||||
post_install
|
||||
end
|
||||
|
||||
search @pkg.name, silent: true
|
||||
search origin, silent: true
|
||||
build_package CREW_LOCAL_BUILD_DIR
|
||||
rescue InstallError => e
|
||||
abort "#{@pkg.name} failed to build: #{e}".lightred
|
||||
|
||||
@@ -43,11 +43,11 @@ class ConvenienceFunctions
|
||||
def self.read_filelist(path)
|
||||
filelist = File.readlines(path, chomp: true)
|
||||
|
||||
if filelist.first.start_with?('# Total size')
|
||||
if filelist.first&.start_with?('# Total size')
|
||||
total_size, *contents = filelist
|
||||
return [total_size[/Total size: (\d+)/, 1].to_i, contents]
|
||||
else
|
||||
return [0, *filelist]
|
||||
return [0, filelist]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user