teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm-4.13.0-rc1-Fix-new-richdep-syntax.patch

Florian Festi 2e60cb
From d20b7d2b00e349610f3cf08d9ff3723cc7c56e32 Mon Sep 17 00:00:00 2001
Florian Festi 2e60cb
From: Florian Festi <ffesti@redhat.com>
Florian Festi 2e60cb
Date: Mon, 7 Sep 2015 11:39:36 +0200
Florian Festi 2e60cb
Subject: [PATCH] Fix rpmrichOpStr to use the new syntax
Florian Festi 2e60cb
Florian Festi 2e60cb
You need to rebuild all packages using rich deps build with previous versions of rpm as the richdeps are converted to the old syntax.
Florian Festi 2e60cb
---
Florian Festi 2e60cb
 lib/rpmds.c | 8 ++++----
Florian Festi 2e60cb
 1 file changed, 4 insertions(+), 4 deletions(-)
Florian Festi 2e60cb
Florian Festi 2e60cb
diff --git a/lib/rpmds.c b/lib/rpmds.c
Florian Festi 2e60cb
index 77733bc..ba6e244 100644
Florian Festi 2e60cb
--- a/lib/rpmds.c
Florian Festi 2e60cb
+++ b/lib/rpmds.c
Florian Festi 2e60cb
@@ -1390,13 +1390,13 @@ const char *rpmrichOpStr(rpmrichOp op)
Florian Festi 2e60cb
     if (op == RPMRICHOP_SINGLE)
Florian Festi 2e60cb
 	return "SINGLE";
Florian Festi 2e60cb
     if (op == RPMRICHOP_AND)
Florian Festi 2e60cb
-	return "&";
Florian Festi 2e60cb
+	return "and";
Florian Festi 2e60cb
     if (op == RPMRICHOP_OR)
Florian Festi 2e60cb
-	return "|";
Florian Festi 2e60cb
+	return "or";
Florian Festi 2e60cb
     if (op == RPMRICHOP_IF)
Florian Festi 2e60cb
-	return "IF";
Florian Festi 2e60cb
+	return "if";
Florian Festi 2e60cb
     if (op == RPMRICHOP_ELSE)
Florian Festi 2e60cb
-	return "ELSE";
Florian Festi 2e60cb
+	return "else";
Florian Festi 2e60cb
     return NULL;
Florian Festi 2e60cb
 }
Florian Festi 2e60cb
 
Florian Festi 2e60cb
-- 
Florian Festi 2e60cb
2.1.0
Florian Festi 2e60cb