]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Add REL_ERROR for dependencies that could not be parsed
authorMichael Schroeder <mls@suse.de>
Tue, 18 Apr 2017 09:19:52 +0000 (11:19 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 18 Apr 2017 09:19:52 +0000 (11:19 +0200)
This will make a solvable not installable in the future.

src/pool.h
src/poolid.c

index 1ae3b11ad941c9c203dc43d79ccd1e8f61482cbd..3eeea0604f6a76230cf2461ec6641ed34256dc8d 100644 (file)
@@ -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)
index 91eba34c7e7b7feece9a601b8c7c6b66fa302dea..3a8a3c8050086c7678ebaebc1b0cba04d75ac9ba 100644 (file)
@@ -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;
     }