Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
apk-tools
Commits
f4ac687a
Commit
f4ac687a
authored
Sep 27, 2011
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg: fix dependency checking against non-installed packages
the solver requires this.
parent
012bcbe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/package.c
src/package.c
+5
-0
No files found.
src/package.c
View file @
f4ac687a
...
...
@@ -279,6 +279,11 @@ static int parse_depend(void *ctx, apk_blob_t blob)
int
apk_dep_is_satisfied
(
struct
apk_dependency
*
dep
,
struct
apk_package
*
pkg
)
{
if
(
pkg
==
NULL
)
{
if
(
dep
->
result_mask
==
APK_DEPMASK_CONFLICT
)
return
1
;
return
0
;
}
if
(
dep
->
name
!=
pkg
->
name
)
return
0
;
if
(
dep
->
result_mask
==
APK_DEPMASK_CHECKSUM
)
{
...
...
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