diff options
| author | Martin Babinsky <mbabinsk@redhat.com> | 2016-01-11 16:22:40 +0100 |
|---|---|---|
| committer | Jan Cholasta <jcholast@redhat.com> | 2016-01-11 17:54:36 +0100 |
| commit | 7cd99e852053710c64dcb66cd5b15fc8ed4da5de (patch) | |
| tree | d6ba908f1c4d824644ad19e27ea3f68dea2e5b3a /doc/examples/python-api.py | |
| parent | bc6543efae9bb1bf7c5e792e30b1ea396607f57e (diff) | |
| download | freeipa-7cd99e852053710c64dcb66cd5b15fc8ed4da5de.tar.gz freeipa-7cd99e852053710c64dcb66cd5b15fc8ed4da5de.tar.xz freeipa-7cd99e852053710c64dcb66cd5b15fc8ed4da5de.zip | |
use FFI call to rpmvercmp function for version comparison
Stop using rpm-python to compare package versions since the implicit NSS
initialization upon the module import breaks NSS handling in IPA code. Call
rpm-libs C-API function via CFFI instead.
Big thanks to Martin Kosek <mkosek@redhat.com> for sharing the code snippet
that spurred this patch.
https://fedorahosted.org/freeipa/ticket/5572
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'doc/examples/python-api.py')
0 files changed, 0 insertions, 0 deletions
