base.bbclass: fix issue with unpack of patches with apply=no
authorChris Larson <chris_larson@mentor.com>
Thu, 27 May 2010 20:13:52 +0000 (13:13 -0700)
committerChris Larson <chris_larson@mentor.com>
Thu, 27 May 2010 20:13:52 +0000 (13:13 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
classes/base.bbclass

index 8bac509..e0f9184 100644 (file)
@@ -207,7 +207,7 @@ def oe_unpack_file(file, data, url = None):
                cmd = 'cp -pPR %s %s/%s/' % (file, os.getcwd(), destdir)
        else:
                (type, host, path, user, pswd, parm) = bb.decodeurl(url)
-               if not 'apply' in parm and not 'patch' in parm:
+               if not 'patch' in parm and parm.get('apply') != 'yes':
                        # The "destdir" handling was specifically done for FILESPATH
                        # items.  So, only do so for file:// entries.
                        if type == "file":