teknoraver / rpms / rpm

Forked from rpms/rpm 3 months ago
Clone

Blame SOURCES/rpm-4.16.1.3-caret-query.patch

fa6a06
From 4420c78beb86cc67392274bf351478a3375626a2 Mon Sep 17 00:00:00 2001
fa6a06
From: yangchenguang <89123114+yangchenguang94@users.noreply.github.com>
fa6a06
Date: Wed, 13 Jul 2022 16:52:07 +0800
fa6a06
Subject: [PATCH] Fix query arguments with ^ not working
fa6a06
fa6a06
when querying packages in the RPM database.
fa6a06
fa6a06
Rersolves: #2104
fa6a06
---
fa6a06
 lib/rpmdb.c | 1 +
fa6a06
 1 file changed, 1 insertion(+)
fa6a06
fa6a06
diff --git a/lib/rpmdb.c b/lib/rpmdb.c
fa6a06
index fa8f3c9b9c..fd2b0671ae 100644
fa6a06
--- a/lib/rpmdb.c
fa6a06
+++ b/lib/rpmdb.c
fa6a06
@@ -1133,6 +1133,7 @@ static char * mireDup(rpmTagVal tag, rpmMireMode *modep,
fa6a06
 	    switch (*s) {
fa6a06
 	    case '.':
fa6a06
 	    case '+':
fa6a06
+	    case '^':
fa6a06
 		if (!brackets) *t++ = '\\';
fa6a06
 		break;
fa6a06
 	    case '*':