From d2f789fac03239fbe370a8dc3b838f21d9cdca29 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 18 Apr 2017 11:19:52 +0200 Subject: [PATCH] Add REL_ERROR for dependencies that could not be parsed This will make a solvable not installable in the future. --- src/pool.h | 1 + src/poolid.c | 2 ++ 2 files changed, 3 insertions(+) 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; } -- 2.47.2