Patchwork [07/24] distutils3.bbclass: Port the distutils class fix to handle filenames with spaces

login
register
mail settings
Submitter Khem Raj
Date June 28, 2013, 10:03 p.m.
Message ID <678b0d3adfc58b088e35adc51a9d3a7097e23db3.1372456294.git.raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/52651/
State New
Headers show

Comments

Khem Raj - June 28, 2013, 10:03 p.m.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/classes/distutils3.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/distutils3.bbclass b/meta/classes/distutils3.bbclass
index 3738b14..602ce48 100644
--- a/meta/classes/distutils3.bbclass
+++ b/meta/classes/distutils3.bbclass
@@ -51,7 +51,7 @@  distutils3_do_install() {
         echo "Step 3 of ${PN} Install ..."
         # support filenames with *spaces*
         find ${D} -name "*.py" -print0 | while read -d $'\0' i ; do \
-            sed -i -e s:${D}::g $i
+            sed -i -e s:${D}::g "$i"
         done
 
         echo "Step 4 of ${PN} Install ..."