Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
apk-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sertonix
apk-tools
Commits
bd156836
Commit
bd156836
authored
3 years ago
by
Alex Xu (Hello71)
Committed by
Timo Teräs
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add: warn when creating empty virtual packages
see
alpine/aports#11736
[TT: minor stylistic change]
parent
9b3e68d4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app_add.c
+2
-0
2 additions, 0 deletions
src/app_add.c
test/basic8.test
+1
-0
1 addition, 0 deletions
test/basic8.test
with
3 additions
and
0 deletions
src/app_add.c
+
2
−
0
View file @
bd156836
...
...
@@ -147,6 +147,8 @@ static int add_main(void *ctx, struct apk_ctx *ac, struct apk_string_array *args
virtdep
.
result_mask
=
APK_VERSION_EQUAL
;
virtdep
.
version
=
virtpkg
->
version
;
if
(
!
args
->
num
)
apk_warn
(
out
,
"creating empty virtual package"
);
}
foreach_array_item
(
parg
,
args
)
{
...
...
This diff is collapsed.
Click to expand it.
test/basic8.test
+
1
−
0
View file @
bd156836
...
...
@@ -2,5 +2,6 @@
--
no
-
network
add
-
t
.
virtual
@
EXPECT
WARNING
:
creating
empty
virtual
package
(
1
/
1
)
Installing
.
virtual
(
20190603.131426
)
OK
:
0
MiB
in
0
packages
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment