Added -y
flag to query_package
* library/packaging/pkgin: Signed-off-by: giorgio-v <giorgio@refactor.it>
This commit is contained in:
parent
99dfa1afec
commit
0342f432e2
1 changed files with 1 additions and 1 deletions
2
library/packaging/pkgin
Normal file → Executable file
2
library/packaging/pkgin
Normal file → Executable 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``
|
||||
|
|
Loading…
Reference in a new issue