From: Michael Tremer Date: Tue, 7 Dec 2021 16:43:43 +0000 (+0000) Subject: util: Skip any dependencies starting with # X-Git-Tag: 0.9.28~864 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a4af31a4d6ef0989da0822ad95372b0bdd0c1ef;p=pakfire.git util: Skip any dependencies starting with # Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/util.c b/src/libpakfire/util.c index 92d228294..b777069df 100644 --- a/src/libpakfire/util.c +++ b/src/libpakfire/util.c @@ -304,6 +304,10 @@ Id pakfire_str2dep(struct pakfire* pakfire, const char* s) { if (isspace(*s)) s++; + // Ignore any comments + if (*s == '#') + return id; + // Parse any rich dependencies if (*s == '(') id = pakfire_parse_rich_dep(pakfire, &s, 0);