Commit f8645919 authored by supechicken666's avatar supechicken666 Committed by GitHub

Update crew

parent 084884ec
...@@ -214,9 +214,7 @@ def generate_compatible ...@@ -214,9 +214,7 @@ def generate_compatible
end end
def search (pkgName, silent = false) def search (pkgName, silent = false)
Find.find (CREW_LIB_PATH + 'packages') do |filename| return set_package(pkgName, filename) if File.exist?(CREW_LIB_PATH + 'packages/' + pkgName + '.rb')
return set_package(pkgName, filename) if filename == CREW_LIB_PATH + 'packages/' + pkgName + '.rb'
end
abort "Package #{pkgName} not found. :(".lightred unless silent abort "Package #{pkgName} not found. :(".lightred unless silent
end end
...@@ -740,6 +738,7 @@ def expand_dependencies ...@@ -740,6 +738,7 @@ def expand_dependencies
end end
def resolve_dependencies def resolve_dependencies
abort "Package #{@pkg.name} is not compatible with your architecture (#{ARCH}) :/".lightred unless @pkg.compatibility.include?('all') or @pkg.compatibility.include?(ARCH)
@pkg.preflight @pkg.preflight
expand_dependencies expand_dependencies
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment