Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
apk-tools
Commits
0dcbd933
Commit
0dcbd933
authored
Feb 21, 2018
by
Ariadne Conill
🐰
Browse files
solver: allow names with only one provider to be autoselected regardless of priority
parent
fa762cd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/solver.c
View file @
0dcbd933
...
...
@@ -671,11 +671,12 @@ static void select_package(struct apk_solver_state *ss, struct apk_name *name)
(
!
p
->
pkg
->
ss
.
iif_triggered
||
!
p
->
pkg
->
ss
.
tag_ok
))
continue
;
/* Virtual packages without provider_priority cannot be autoselected */
/* Virtual packages without provider_priority cannot be autoselected,
* unless there is only one provider */
if
(
p
->
version
==
&
apk_null_blob
&&
p
->
pkg
->
name
->
auto_select_virtual
==
0
&&
p
->
pkg
->
name
->
ss
.
requirers
==
0
&&
p
->
pkg
->
provider_priority
==
0
)
(
p
->
pkg
->
provider_priority
==
0
&&
name
->
providers
->
num
>
1
)
)
continue
;
if
(
compare_providers
(
ss
,
p
,
&
chosen
)
>
0
)
chosen
=
*
p
;
...
...
test/provides.repo
View file @
0dcbd933
...
...
@@ -82,7 +82,7 @@ P:conflicted-provider-b
V:0.1
S:1
I:1
p:conflicted-provider
p:conflicted-provider
conflicted-provider-2
C:Q1EyN5AdpAOBJWKMR89ppC66ccccj=
P:conflicted-dep
...
...
@@ -104,3 +104,10 @@ V:0.1
S:1
I:1
p:self-provide
C:Q1EyN5AdpAOBJWKMR89ppC66eeeej=
P:conflicted-dep-2
V:0.1
S:1
I:1
D:conflicted-provider-2
Timo Teräs
@fabled
mentioned in issue
#10810 (closed)
·
Feb 15, 2022
mentioned in issue
#10810 (closed)
mentioned in issue #10810
Toggle commit list
Timo Teräs
@fabled
mentioned in commit
e4dc2373
·
Feb 24, 2022
mentioned in commit
e4dc2373
mentioned in commit e4dc2373d6acded0cf14c7e09694726b2d8f524e
Toggle commit list
Timo Teräs
@fabled
mentioned in commit
3b013f45
·
Feb 24, 2022
mentioned in commit
3b013f45
mentioned in commit 3b013f458225c2ad8a0d96ec3eb3dde2533e0312
Toggle commit list
Write
Preview
Supports
Markdown
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