rpmdbOpen() and rpmdbAdd() are internal-only for a reason, for example they 
bypass all sorts of things like transaction lock. However in rpm >= 4.12 there 
is rpmtsImportHeader() which is essentially rpmdbAdd() wrapped with all the 
necessary stuff.

---
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/52#issuecomment-174412312
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to