]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Remove support for THEN, make ELSE work with IF
authorMichael Schroeder <mls@suse.de>
Tue, 25 Aug 2015 11:59:46 +0000 (13:59 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 25 Aug 2015 11:59:46 +0000 (13:59 +0200)
ext/pool_parserpmrichdep.c

index b048aeb4464ba2a63d7992f075560f5f6f2effcb..c91e7d8855e6889272db364ef636a16d1473df95 100644 (file)
@@ -12,8 +12,6 @@
 #include "pool.h"
 #include "pool_parserpmrichdep.h"
 
-#define REL_THEN 0
-
 static struct RichOpComp {
   const char *n;
   int l;
@@ -26,10 +24,7 @@ static struct RichOpComp {
   { "|", 1, REL_OR },
   { "OR", 2, REL_OR },
   { "IF", 2, REL_COND },
-  { "THEN", 4, REL_THEN },
-  { "?", 1, REL_THEN },
   { "ELSE", 4, REL_ELSE },
-  { ":", 1, REL_ELSE },
   { NULL, 0, 0},
 };
 
@@ -115,7 +110,7 @@ parseRichDep(Pool *pool, const char **depp, Id chainfl)
   fl = op->fl;
   if (!fl)
     return 0;
-  if (chainfl == REL_THEN && fl == REL_ELSE)
+  if (chainfl == REL_COND && fl == REL_ELSE)
     chainfl = 0;
   if (chainfl && fl != chainfl)
     return 0;