diff options
author | CoprDistGit <infra@openeuler.org> | 2024-09-18 07:05:42 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-09-18 07:05:42 +0000 |
commit | 4ad1d692311b38472d44f5deb9c32634b334ed4d (patch) | |
tree | 3e004676c8e07b495fdeda7291033d0fde73d783 /backport-Use-the-internal-DB_CTRL-enum-for-intenal-uses-consi.patch | |
parent | e248808867f90830a43b5ca5d192bef9dd2edec2 (diff) |
automatic import of rpm
Diffstat (limited to 'backport-Use-the-internal-DB_CTRL-enum-for-intenal-uses-consi.patch')
-rw-r--r-- | backport-Use-the-internal-DB_CTRL-enum-for-intenal-uses-consi.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/backport-Use-the-internal-DB_CTRL-enum-for-intenal-uses-consi.patch b/backport-Use-the-internal-DB_CTRL-enum-for-intenal-uses-consi.patch new file mode 100644 index 0000000..64e7b6a --- /dev/null +++ b/backport-Use-the-internal-DB_CTRL-enum-for-intenal-uses-consi.patch @@ -0,0 +1,28 @@ +From 1d6987a8ede061db611ff02eda62315e0ae24d2b Mon Sep 17 00:00:00 2001 +From: Panu Matilainen <pmatilai@redhat.com> +Date: Mon, 18 Mar 2024 10:02:52 +0200 +Subject: [PATCH] Use the internal DB_CTRL* enum for intenal uses consistently + +Conflict:NA +Reference:https://github.com/rpm-software-management/rpm/commit/1d6987a8ede061db611ff02eda62315e0ae24d2b + +--- + lib/rpmdb.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/rpmdb.c b/lib/rpmdb.c +index 2f0d72afd..4ad12230b 100644 +--- a/lib/rpmdb.c ++++ b/lib/rpmdb.c +@@ -69,7 +69,7 @@ static int buildIndexes(rpmdb db) + + dbSetFSync(db, 0); + +- dbCtrl(db, RPMDB_CTRL_LOCK_RW); ++ dbCtrl(db, DB_CTRL_LOCK_RW); + + mi = rpmdbInitIterator(db, RPMDBI_PACKAGES, NULL, 0); + while ((h = rpmdbNextIterator(mi))) { +-- +2.33.0 + |