From 0342f432e2a9a279a13e5a0582f971d7407cb808 Mon Sep 17 00:00:00 2001 From: giorgio-v Date: Mon, 18 Nov 2013 08:01:10 +0100 Subject: [PATCH] Added `-y` flag to `query_package` * library/packaging/pkgin: Signed-off-by: giorgio-v --- library/packaging/pkgin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 library/packaging/pkgin diff --git a/library/packaging/pkgin b/library/packaging/pkgin old mode 100644 new mode 100755 index 024e8756eb5..c6b6e833709 --- a/library/packaging/pkgin +++ b/library/packaging/pkgin @@ -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``