Skip to contentSkip to conversation

oe/recipeutils: Fix copying patches when BBLAYERS entries are not normalised

PATCH New Andrei Gherzan 1 participant 1 message Feb 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oe/recipeutils: Fix copying patches when BBLAYERS entries are not normalised

From: Andrei Gherzan <[email protected]>

devtool uses copy_recipe_files for the upgrade operation when creating the new, workspace recipe. Before handling the copy operations, the function checks the entry in SRC_URI against FILE while in turn uses absolute paths. When BBLAYERS contains entries that are not normalised, this check will fail resulting in having the recipe in the workspace without the initial patches.

---
 meta/lib/oe/recipeutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/recipeutils.py +1 -1
index ef69ef207f..407d168894 100644
@@ -409,7 +409,7 @@ def copy_recipe_files(d, tgt_dir, whole_dir=False, download=True, all_variants=F
                 fetch.download()
             for pth in fetch.localpaths():
                 if pth not in localpaths:
-                    localpaths.append(pth)
+                    localpaths.append(os.path.abspath(pth))
             uri_values.append(srcuri)
 
     fetch_urls(d)
Signature · 1 line
2.30.1