update code to match dnf 0.4.17 new public api