Commit a12b300c authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #815 from jam7/refactor/crew-no-auto-buildessential

Change crew to not automatically install buildessential
parents 2ef70287 79da9fb7
...@@ -504,9 +504,6 @@ end ...@@ -504,9 +504,6 @@ end
def expand_dependencies def expand_dependencies
@dependencies = [] @dependencies = []
# check source packages existance
@source_package = 0
def push_dependencies def push_dependencies
if @pkg.is_binary?(@device[:architecture]) || if @pkg.is_binary?(@device[:architecture]) ||
(!@pkg.in_upgrade && !@pkg.build_from_source && @device[:installed_packages].any? { |pkg| pkg[:name] == @pkg.name }) (!@pkg.in_upgrade && !@pkg.build_from_source && @device[:installed_packages].any? { |pkg| pkg[:name] == @pkg.name })
...@@ -518,8 +515,6 @@ def expand_dependencies ...@@ -518,8 +515,6 @@ def expand_dependencies
else else
# retrieve name of all dependencies # retrieve name of all dependencies
check_deps = @pkg.dependencies.map {|k, v| k} check_deps = @pkg.dependencies.map {|k, v| k}
# count the number of source packages to add buildessential into dependencies later
@source_package += 1
end end
# remove a dependent package which is equal to the target # remove a dependent package which is equal to the target
...@@ -537,12 +532,6 @@ def expand_dependencies ...@@ -537,12 +532,6 @@ def expand_dependencies
push_dependencies push_dependencies
# Add buildessential's dependencies if any of dependent
# packages are made from source
if @source_package > 0
search 'buildessential', true
push_dependencies
end
@dependencies.uniq @dependencies.uniq
end end
......
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