From 528be31b4c10aa03d2ef40544be7f119247b90f5 Mon Sep 17 00:00:00 2001 From: Tomas Mlcoch Date: Mon, 11 Mar 2013 10:49:52 +0100 Subject: [PATCH] Remove creation of empty keyring (BZ 918645). --- src/parsepkg.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/parsepkg.c b/src/parsepkg.c index 99c13d2..dae17a2 100644 --- a/src/parsepkg.c +++ b/src/parsepkg.c @@ -57,16 +57,6 @@ cr_package_parser_init() vsflags |= _RPMVSF_NOSIGNATURES; vsflags |= RPMVSF_NOHDRCHK; rpmtsSetVSFlags(cr_ts, vsflags); - - // Set empty keyring - // Why? Because RPM is not thread-safe. Not only a little bit. - // RPM uses some internal states which makes it thread-*un*safe. - // This includes also reading the headers. - // Work around for this shoud be use empty keyring. - keyring = rpmKeyringNew(); - if (rpmtsSetKeyring(cr_ts, keyring) == -1) - g_critical("%s: rpmtsSetKeyring() failed", __func__); - rpmKeyringFree(keyring); } -- 2.7.4