1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4938 from giorgio-v/pkgin_y_default

Added `-y` flag to `query_package`
This commit is contained in:
jctanner 2013-12-02 11:47:04 -08:00
commit 219f27a594

2
library/packaging/pkgin Normal file → Executable file
View file

@ -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``