Skip to content

Commit

Permalink
Merge pull request #4 from retr0h/provides-packages
Browse files Browse the repository at this point in the history
Cleaned up the is_installed logic
  • Loading branch information
MiLk authored Dec 13, 2016
2 parents ef72de4 + 440bb79 commit 4cb3b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/yum.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@


def is_installed(name):
rc, _, _ = module.run_command(['rpmquery', '--quiet', name])
rc, _, _ = module.run_command(['rpmquery', '--whatprovides', name])
return rc == 0


Expand Down

0 comments on commit 4cb3b50

Please sign in to comment.