Commit 219f27a5 by jctanner

Merge pull request #4938 from giorgio-v/pkgin_y_default

Added `-y` flag to `query_package`
parents 6d80c50f 0342f432
...@@ -64,7 +64,7 @@ def query_package(module, pkgin_path, name, state="present"): ...@@ -64,7 +64,7 @@ def query_package(module, pkgin_path, name, state="present"):
if state == "present": if state == "present":
rc, out, err = module.run_command("%s list | grep ^%s" % (pkgin_path, name)) rc, out, err = module.run_command("%s -y list | grep ^%s" % (pkgin_path, name))
if rc == 0: if rc == 0:
# At least one package with a package name that starts with ``name`` # At least one package with a package name that starts with ``name``
......
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