bugfix: only return true and false for package installed?

This commit is contained in:
Christoph Hartmann 2015-10-22 19:31:55 +02:00
parent 65761233ba
commit 86bdb9903b

View file

@ -36,7 +36,8 @@ class Package < Vulcano.resource(1)
# returns true if the package is installed
def installed?(_provider = nil, _version = nil)
!info.nil?
return false if info.nil?
info[:installed] == true
end
# returns the package description