From: Tomas Mlcoch Date: Mon, 11 Mar 2013 09:49:52 +0000 (+0100) Subject: Remove creation of empty keyring (BZ 918645). X-Git-Tag: upstream/0.2.1~246 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=528be31b4c10aa03d2ef40544be7f119247b90f5;p=services%2Fcreaterepo_c.git Remove creation of empty keyring (BZ 918645). --- 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); }