Skip to content

Commit 681db4c

Browse files
committed
Merge pull request ansible#60 from mchwalisz/devel
opkg: fix package state detection
2 parents 8b51b76 + 9793731 commit 681db4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/opkg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def query_package(module, opkg_path, name, state="present"):
6767

6868
if state == "present":
6969

70-
rc, out, err = module.run_command("%s list-installed | grep -q ^%s" % (pipes.quote(opkg_path), pipes.quote(name)), use_unsafe_shell=True)
70+
rc, out, err = module.run_command("%s list-installed | grep -q \"^%s \"" % (pipes.quote(opkg_path), pipes.quote(name)), use_unsafe_shell=True)
7171
if rc == 0:
7272
return True
7373

0 commit comments

Comments
 (0)