From e679b515eddb3dd340fb25620de0160211f40fdc Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Tue, 4 Dec 2018 14:04:28 +0900 Subject: Imported Upstream version 0.6.35 Change-Id: Ib7359aa10c08c1469105fbd6a82ea922f46f8b51 Signed-off-by: DongHun Kwak --- ext/repo_rpmdb_bdb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/repo_rpmdb_bdb.h') diff --git a/ext/repo_rpmdb_bdb.h b/ext/repo_rpmdb_bdb.h index c34ff70..ed82a69 100644 --- a/ext/repo_rpmdb_bdb.h +++ b/ext/repo_rpmdb_bdb.h @@ -265,7 +265,7 @@ closepkgdb(struct rpmdbstate *state) /* get the rpmdbids of all installed packages from the Name index database. * This is much faster then querying the big Packages database */ static struct rpmdbentry * -getinstalledrpmdbids(struct rpmdbstate *state, const char *index, const char *match, int *nentriesp, char **namedatap) +getinstalledrpmdbids(struct rpmdbstate *state, const char *index, const char *match, int *nentriesp, char **namedatap, int keep_gpg_pubkey) { DB_ENV *dbenv = 0; DB *db = 0; @@ -321,7 +321,7 @@ getinstalledrpmdbids(struct rpmdbstate *state, const char *index, const char *ma } while (dbc->c_get(dbc, &dbkey, &dbdata, match ? DB_SET : DB_NEXT) == 0) { - if (!match && dbkey.size == 10 && !memcmp(dbkey.data, "gpg-pubkey", 10)) + if (!match && !keep_gpg_pubkey && dbkey.size == 10 && !memcmp(dbkey.data, "gpg-pubkey", 10)) continue; dl = dbdata.size; dp = dbdata.data; -- cgit v1.2.3