[oe-commits] [openembedded-core] 01/01: devtool: modify command fails to ignore source files

git at git.openembedded.org git at git.openembedded.org
Wed Oct 5 09:13:56 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 62bf3433ecdbfc51f06ea573e4fb3bdbc0b504bb
Author: Stephano Cetola <stephano.cetola at linux.intel.com>
AuthorDate: Mon Oct 3 18:59:47 2016 -0700

    devtool: modify command fails to ignore source files
    
    With recent changes to recipeutils, the list of local files returned
    by get_recipe_local_files could possibly include source files. This
    only happens when the recipe contains a SRC_URI using subdir= to put
    files in the source tree. These files should be ignored when
    populating the list of local files for oe-local-files directory.
    
    [YOCTO #10326]
    
    introduced in
    OE-Core revision 9069fef5dad5a873c8a8f720f7bcbc7625556309
    
    Signed-off-by: Stephano Cetola <stephano.cetola at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/lib/devtool/standard.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 4b9b173..4144d0b 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -581,8 +581,13 @@ def _extract_source(srctree, keep_temp, devbranch, sync, d):
         recipe_patches = [os.path.basename(patch) for patch in
                           oe.recipeutils.get_recipe_patches(crd)]
         local_files = oe.recipeutils.get_recipe_local_files(crd)
+
+        # Ignore local files with subdir={BP}
+        srcabspath = os.path.abspath(srcsubdir)
         local_files = [fname for fname in local_files if
-                       os.path.exists(os.path.join(workdir, fname))]
+                       os.path.exists(os.path.join(workdir, fname)) and
+                       not os.path.join(workdir, fname).startswith(srcabspath +
+                           os.sep)]
         if local_files:
             for fname in local_files:
                 _move_file(os.path.join(workdir, fname),

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list