Commit 9dec2585 by jctanner

Merge pull request #5182 from mscherer/fix_5177

Fix apt module to be able to install package by giving just a provides a...
parents 85d8587c 3df62f1d
......@@ -169,6 +169,8 @@ def package_status(m, pkgname, version, cache, state):
ll_pkg = cache._cache[pkgname] # the low-level package object
except KeyError:
if state == 'install':
if cache.get_providing_packages(pkgname):
return False, True, False
m.fail_json(msg="No package matching '%s' is available" % pkgname)
else:
return False, False, False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment