diff options
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -112,15 +112,19 @@ static int add_main(void *ctx, struct apk_database *db, int argc, char **argv) return -1; } - if (virtpkg) - apk_deps_add(&virtpkg->depends, &dep); - else + if (virtpkg == NULL) { apk_deps_add(&world, &dep); + apk_solver_set_name_flags(dep.name, actx->solver_flags); + } else { + apk_deps_add(&virtpkg->depends, &dep); + } } - if (virtpkg) + if (virtpkg) { apk_deps_add(&world, &virtdep); + apk_solver_set_name_flags(virtdep.name, actx->solver_flags); + } - r = apk_solver_commit(db, actx->solver_flags, world); + r = apk_solver_commit(db, 0, world); apk_dependency_array_free(&world); return r; |