summaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c
index dec5bb0..9fc3e1f 100644
--- a/src/test.c
+++ b/src/test.c
@@ -147,6 +147,7 @@ static int test_main(void *pctx, struct apk_database *db, int argc, char **argv)
struct apk_bstream *bs;
struct apk_package_array *solution = NULL;
struct apk_changeset changeset = {};
+ apk_blob_t b;
int i, r;
if (argc != 1)
@@ -173,7 +174,8 @@ static int test_main(void *pctx, struct apk_database *db, int argc, char **argv)
}
/* construct new world */
- apk_deps_parse(db, &db->world, APK_BLOB_STR(argv[0]));
+ b = APK_BLOB_STR(argv[0]);
+ apk_blob_pull_deps(&b, db, &db->world);
/* run solver */
r = apk_solver_solve(db, ctx->solver_flags, db->world, &solution, &changeset);