Merge pull request #4938 from giorgio-v/pkgin_y_default

Added `-y` flag to `query_package`
reviewable/pr18780/r1
jctanner 11 years ago
commit 70220dc5fd

@ -64,7 +64,7 @@ def query_package(module, pkgin_path, name, 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:
# At least one package with a package name that starts with ``name``

Loading…
Cancel
Save