]> git.ipfire.org Git - pakfire.git/commitdiff
packages: Fail match if we could not parse the dependency
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 19 Mar 2023 12:47:00 +0000 (12:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 19 Mar 2023 19:04:31 +0000 (19:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/package.c

index 72dcaabfb101383939a3dddb3d35395ca5dd710d..363f17c32c5fe92bfc73d00a0e946654600e62ea 100644 (file)
@@ -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);