summaryrefslogtreecommitdiff
path: root/ext/repo_rpmdb_bdb.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2018-12-04 14:04:28 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2018-12-04 14:04:32 +0900
commite679b515eddb3dd340fb25620de0160211f40fdc (patch)
tree93271e0bbd40dba805f8270cfc78a3ac10ab2c8f /ext/repo_rpmdb_bdb.h
parentd98199487aa414cb7f965a058c4395235343e20a (diff)
downloadlibsolv-e679b515eddb3dd340fb25620de0160211f40fdc.tar.gz
libsolv-e679b515eddb3dd340fb25620de0160211f40fdc.tar.bz2
libsolv-e679b515eddb3dd340fb25620de0160211f40fdc.zip
Imported Upstream version 0.6.35upstream/0.6.35
Change-Id: Ib7359aa10c08c1469105fbd6a82ea922f46f8b51 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'ext/repo_rpmdb_bdb.h')
-rw-r--r--ext/repo_rpmdb_bdb.h4
1 files changed, 2 insertions, 2 deletions
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;