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 <michael.tremer@ipfire.org>
// 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);