Skip to content
Snippets Groups Projects
Commit e2f89c5f authored by Sertonix's avatar Sertonix Committed by Timo Teräs
Browse files

add: check version of virtual packages

(cherry picked from commit afe80baf)
parent 9ac86745
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,8 @@ static int add_main(void *ctx, struct apk_database *db, struct apk_string_array
apk_blob_pull_dep(&b, db, &virtdep);
if (APK_BLOB_IS_NULL(b) || virtdep.conflict ||
(virtdep.name->name[0] != '.' && non_repository_check(db)))
(virtdep.name->name[0] != '.' && non_repository_check(db)) ||
virtdep.broken)
goto bad_spec;
switch (virtdep.result_mask) {
......
@ARGS
--test-instdb basic.installed
add -t .virtual>1
@EXPECT
ERROR: .virtual>1: bad package specifier
@ARGS
--test-instdb basic.installed
add -t .virtual=invalid
@EXPECT
ERROR: .virtual=invalid: bad package specifier
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment