From: Michael Schroeder Date: Tue, 18 Apr 2017 09:19:52 +0000 (+0200) Subject: Add REL_ERROR for dependencies that could not be parsed X-Git-Tag: 0.6.27~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2f789fac03239fbe370a8dc3b838f21d9cdca29;p=thirdparty%2Flibsolv.git Add REL_ERROR for dependencies that could not be parsed This will make a solvable not installable in the future. --- diff --git a/src/pool.h b/src/pool.h index 1ae3b11a..3eeea060 100644 --- a/src/pool.h +++ b/src/pool.h @@ -228,6 +228,7 @@ struct _Pool { #define REL_KIND 24 /* for filters only */ #define REL_MULTIARCH 25 /* debian multiarch annotation */ #define REL_ELSE 26 /* only as evr part of REL_COND */ +#define REL_ERROR 27 /* parse errors and the like */ #if !defined(__GNUC__) && !defined(__attribute__) # define __attribute__(x) diff --git a/src/poolid.c b/src/poolid.c index 91eba34c..3a8a3c80 100644 --- a/src/poolid.c +++ b/src/poolid.c @@ -194,6 +194,8 @@ pool_id2rel(const Pool *pool, Id id) return " KIND "; case REL_ELSE: return pool->disttype == DISTTYPE_RPM ? " else " : " ELSE "; + case REL_ERROR: + return " ERROR "; default: break; }