From: Michael Tremer Date: Mon, 9 May 2022 21:04:00 +0000 (+0000) Subject: dependencies: Fix parsing X-Git-Tag: 0.9.28~804 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3be9fcfd5927a65c9f4d4d4922f012611a515dd1;p=pakfire.git dependencies: Fix parsing Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/util.c b/src/libpakfire/util.c index f7b4b8e59..b46329952 100644 --- a/src/libpakfire/util.c +++ b/src/libpakfire/util.c @@ -159,13 +159,7 @@ static Id pakfire_parse_dep(struct pakfire* pakfire, const char** s) { p++; // Find the first part - n = p; - - // Find the first part (before =, >= or <=) - while (*p && !isspace(*p) && *p != '<' && *p != '=' && *p != '>') - p++; - - size_t l = p - n; + size_t l = skip(&p, &n); // Add name to pool if (pakfire_string_startswith(n, "pakfire("))