From: Michael Tremer Date: Sun, 19 Mar 2023 12:47:00 +0000 (+0000) Subject: packages: Fail match if we could not parse the dependency X-Git-Tag: 0.9.29~244 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56281312fd5b18abf8e81e08fd7412f1dc1d3235;p=people%2Fms%2Fpakfire.git packages: Fail match if we could not parse the dependency Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/package.c b/src/libpakfire/package.c index 72dcaabfb..363f17c32 100644 --- a/src/libpakfire/package.c +++ b/src/libpakfire/package.c @@ -1105,7 +1105,7 @@ int pakfire_package_matches_dep(struct pakfire_package* pkg, // Get the dependency Id depid = pakfire_str2dep(pkg->pakfire, dep); if (!depid) - return 0; + return -1; // Fetch the solvable Solvable* s = get_solvable(pkg);