Remove the arbitrary limitation on transaction keyring change

- There are some situations where switching keyrings might be wanted,
  especially as long as we dont export a way to pass keyring as
  an argument to package reading/verification functions. Since thereäs
  no technical reason to disallow it, might as well allow it...
This commit is contained in:
Panu Matilainen 2012-02-02 19:13:03 +02:00
parent 8718edcb80
commit 120fd698c3
1 changed files with 1 additions and 5 deletions

View File

@ -258,11 +258,7 @@ rpmKeyring rpmtsGetKeyring(rpmts ts, int autoload)
int rpmtsSetKeyring(rpmts ts, rpmKeyring keyring)
{
/*
* Should we permit switching keyring on the fly? For now, require
* rpmdb isn't open yet (fairly arbitrary limitation)...
*/
if (ts == NULL || rpmtsGetRdb(ts) != NULL)
if (ts == NULL)
return -1;
rpmKeyringFree(ts->keyring);