From 91bbcd4ffae59014c4f462a4f543521cbf9935c3 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 6 Jul 2007 12:45:26 +0000 Subject: base.bbclass: Start to fix quoting git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2126 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/classes/base.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta') diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 4a1b09b1a4..02d69d32e0 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -427,7 +427,7 @@ def oe_unpack_file(file, data, url = None): destdir = "." elif not os.access("%s/%s" % (os.getcwd(), destdir), os.F_OK): os.makedirs("%s/%s" % (os.getcwd(), destdir)) - cmd = 'cp -pPR %s %s/%s/' % (file, os.getcwd(), destdir) + cmd = 'cp -pPR "%s" "%s/%s/"' % (file, os.getcwd(), destdir) else: (type, host, path, user, pswd, parm) = bb.decodeurl(url) if not 'patch' in parm: @@ -438,7 +438,7 @@ def oe_unpack_file(file, data, url = None): else: destdir = "." bb.mkdirhier("%s/%s" % (os.getcwd(), destdir)) - cmd = 'cp %s %s/%s/' % (file, os.getcwd(), destdir) + cmd = 'cp "%s" "%s/%s/"' % (file, os.getcwd(), destdir) if not cmd: return True -- cgit v1.2.3