RPM2 - open_rpm_db() - gain exclusive lock, transactions new root directory

Posted on Tue Sep 25 18:23:30 2007 by yuravk
open_rpm_db() - gain exclusive lock, transactions new root directory
Hello,

I'm interest off using RPM2.

So, the following questions appears during the module research:

- is exclusive lock on RPM database gained when it is opened using open_rpm_db() method and then closed? If yes, which parameter required to be passed into the method? If no, is there an ability to implement that in future RPM2 releases?

- is there an ability to set new root directory (like rpm --root) when transactions (install, upgrade, and remove rpms) are managed?

Thanks in advance for any reply.
Best Regards

Yura
Write a response