rpm_utils: remove is_installed()
ClosedPublic

Authored by kparal on Wed, Jul 12, 2:01 PM.

Details

Summary

Due to a dnf 1.x bug (present on Fedora 25 and older), the previous
implementation with dnf list --installed wasn't working properly - it
also listed available packages, not just installed ones. Because a good
fix is not simple and because this code is going away soon anyway, I
removed the whole is_installed() method and no longer check installed
packages. The packages are now always attempted to install (in
production, under root, etc), or simply printed out as a warning on a
developer setup. It's now up to the developer to notice the warning and
install the packages if they're missing. Unfortunately it seems to be
the most reasonable way to resolve this quickly.

Test Plan

tested locally in dev mode and remotely in production mode

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal created this revision.Wed, Jul 12, 2:01 PM
jskladan accepted this revision.Wed, Jul 12, 2:03 PM
This revision is now accepted and ready to land.Wed, Jul 12, 2:03 PM
Closed by commit rLTRN891b3194a937: rpm_utils: remove is_installed() (authored by Kamil Páral <kparal@redhat.com>). · Explain WhyWed, Jul 12, 2:34 PM
This revision was automatically updated to reflect the committed changes.