Skip to content
GitLab
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
0dfc53b0
Commit
0dfc53b0
authored
Jun 16, 2009
by
Natanael Copa
Browse files
state: bugfix in the package version selector
parent
49c904c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/state.c
View file @
0dfc53b0
...
...
@@ -201,11 +201,14 @@ int apk_state_lock_dependency(struct apk_state *state,
/* Multiple candidates: prune incompatible versions. */
c
=
ns_to_choices
(
state
->
name
[
name
->
id
]);
for
(
i
=
0
;
i
<
c
->
num
;
i
++
)
{
i
=
0
;
while
(
i
<
c
->
num
)
{
if
(
apk_version_compare
(
APK_BLOB_STR
(
c
->
pkgs
[
i
]
->
version
),
APK_BLOB_STR
(
dep
->
version
))
&
dep
->
result_mask
)
&
dep
->
result_mask
)
{
i
++
;
continue
;
}
c
=
name_choices_writable
(
c
);
c
->
pkgs
[
i
]
=
c
->
pkgs
[
c
->
num
-
1
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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