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:
parent
8718edcb80
commit
120fd698c3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue