[minor] Use a new API call
[minor] Use a new API call

Closes: #1002
Approved by: jrohel

rpm-software-management/libdnf,rpm-software-management/libdnf,rpm-software-management/libdnf,rpm-software-management/libdnf