Remove creation of empty keyring (BZ 918645).
authorTomas Mlcoch <tmlcoch@redhat.com>
Mon, 11 Mar 2013 09:49:52 +0000 (10:49 +0100)
committerTomas Mlcoch <tmlcoch@redhat.com>
Mon, 11 Mar 2013 09:49:52 +0000 (10:49 +0100)
src/parsepkg.c

index 99c13d2..dae17a2 100644 (file)
@@ -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);
 }