crew: Fix crew build

Signed-off-by: SupeChicken666 <me@supechicken666.dev>
This commit is contained in:
SupeChicken666
2025-08-20 22:36:03 +08:00
parent a3496a72f3
commit 2c97d8b475
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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