summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval@freescale.com>2013-03-04 17:45:10 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-05 13:28:09 +0000
commit66ed85a0c91a799cace69e11c26780da944ba448 (patch)
tree8c6108203b3ae7eb7e70db0032846a4d34f0ce0a /meta
parentc446bbfa8d8af8d10076a62a3a3e9f86e20f454f (diff)
downloadpoky-66ed85a0c91a799cace69e11c26780da944ba448.tar.gz
sstate.bbclass: Enclose sstate search parameter with quotes
In case filenames have spaces, execution of the function sstater_install will hang, so the print parameter %s must be enclosed with quotes. (From OE-Core rev: 545d7aa26dfefdc927e0f4e2cc37398ef2c63fa6) Signed-off-by: Leonardo Sandoval <leonardo.sandoval@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sstate.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index ee925cd7a0..ce9f243445 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -174,7 +174,7 @@ def sstate_install(ss, d):
174 break 174 break
175 if realmatch: 175 if realmatch:
176 match.append(f) 176 match.append(f)
177 sstate_search_cmd = "grep -rl %s %s --exclude=master.list | sed -e 's:^.*/::' -e 's:\.populate-sysroot::'" % (f, d.expand("${SSTATE_MANIFESTS}")) 177 sstate_search_cmd = "grep -rl '%s' %s --exclude=master.list | sed -e 's:^.*/::' -e 's:\.populate-sysroot::'" % (f, d.expand("${SSTATE_MANIFESTS}"))
178 search_output = subprocess.Popen(sstate_search_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0] 178 search_output = subprocess.Popen(sstate_search_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
179 if search_output != "": 179 if search_output != "":
180 match.append("Matched in %s" % search_output.rstrip()) 180 match.append("Matched in %s" % search_output.rstrip())