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
1de86529
Commit
1de86529
authored
Jan 06, 2012
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg: fix writing of deps with tag and version specifier
It is really name(@tag)(>=version).
parent
23c39085
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/package.c
src/package.c
+4
-4
No files found.
src/package.c
View file @
1de86529
...
...
@@ -342,14 +342,14 @@ void apk_blob_push_dep(apk_blob_t *to, struct apk_database *db, struct apk_depen
}
apk_blob_push_blob
(
to
,
APK_BLOB_STR
(
dep
->
name
->
name
));
if
(
!
APK_BLOB_IS_NULL
(
*
dep
->
version
))
{
apk_blob_push_blob
(
to
,
APK_BLOB_STR
(
apk_version_op_string
(
dep
->
result_mask
)));
apk_blob_push_blob
(
to
,
*
dep
->
version
);
}
if
(
dep
->
repository_tag
&&
db
!=
NULL
)
{
apk_blob_push_blob
(
to
,
APK_BLOB_PTR_LEN
(
"@"
,
1
));
apk_blob_push_blob
(
to
,
*
db
->
repo_tags
[
dep
->
repository_tag
].
name
);
}
if
(
!
APK_BLOB_IS_NULL
(
*
dep
->
version
))
{
apk_blob_push_blob
(
to
,
APK_BLOB_STR
(
apk_version_op_string
(
dep
->
result_mask
)));
apk_blob_push_blob
(
to
,
*
dep
->
version
);
}
}
void
apk_blob_push_deps
(
apk_blob_t
*
to
,
struct
apk_database
*
db
,
struct
apk_dependency_array
*
deps
)
...
...
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