From: Michael Tremer Date: Sat, 26 Jun 2021 13:21:48 +0000 (+0000) Subject: request: Throw unknown things into solver X-Git-Tag: 0.9.28~1168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02703c83c343dc4b9245871d1e684ec3fe52354f;p=pakfire.git request: Throw unknown things into solver This will give us a list of problems which is more flexible than breaking immediately after not being able to find a match Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/request.c b/src/libpakfire/request.c index 51ea7d83e..cd9b67be3 100644 --- a/src/libpakfire/request.c +++ b/src/libpakfire/request.c @@ -375,8 +375,11 @@ static int pakfire_request_add_job(struct pakfire_request* request, int action, // Did we find anything? if (jobs.count == 0) { - ERROR(request->pakfire, "No match for '%s'\n", what); - return 1; + Id id = pakfire_parse_dep(request->pakfire, what); + if (!id) + return 1; + + queue_push2(&jobs, SOLVER_SOLVABLE_PROVIDES, id); } DEBUG(request->pakfire, "Found %d match(es) for '%s'\n", jobs.count / 2, what);