From: Michael Tremer Date: Tue, 31 Dec 2024 14:37:53 +0000 (+0000) Subject: packages: Ignore dependencies starting with "#" X-Git-Tag: 0.9.30~625 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e36c5429bc67a80ac545c8122f4e2ae8a05c66;p=pakfire.git packages: Ignore dependencies starting with "#" Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/package.c b/src/libpakfire/package.c index 05eda8f88..432892e04 100644 --- a/src/libpakfire/package.c +++ b/src/libpakfire/package.c @@ -1372,6 +1372,10 @@ SUCCESS: int pakfire_package_add_dep(struct pakfire_package* pkg, const enum pakfire_package_key key, const char* dep) { + // Ignore comments + if (pakfire_string_startswith(dep, "#")) + return 0; + // Parse the dependency Id id = pakfire_str2dep(pkg->pakfire, dep); if (!id) {