Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
44e27ad3
Commit
44e27ad3
authored
Apr 10, 2017
by
lyxell
Committed by
GitHub
Apr 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #548 from jam7/auto-buildessential
Add buildessential as dependency if we're building from source
parents
3068aba3
c28a2bd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
crew
crew
+20
-2
No files found.
crew
View file @
44e27ad3
...
...
@@ -281,9 +281,19 @@ end
def
resolveDependencies
@dependencies
=
[]
# check source packages existance
@source_package
=
0
def
pushDeps
if
@pkg
.
dependencies
@dependencies
.
unshift
@pkg
.
dependencies
if
@pkg
.
binary_url
&&
@pkg
.
binary_url
.
has_key?
(
@device
[
:architecture
])
@check_deps
=
@pkg
.
dependencies
else
# Use source dependencies
@check_deps
=
@pkg
.
dependencies
@source_package
+=
1
end
if
@check_deps
&&
!
@check_deps
.
empty?
@dependencies
.
unshift
@check_deps
@pkg
.
dependencies
.
each
do
|
dep
|
search
dep
,
true
...
...
@@ -293,6 +303,14 @@ def resolveDependencies
end
pushDeps
# Add buildessential and solve its dependencies if any of dependent
# packages are made from source
if
@source_package
>
0
@dependencies
.
unshift
'buildessential'
search
'buildessential'
,
true
end
pushDeps
return
if
@dependencies
.
empty?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment