summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3/create_manifest3.py
diff options
context:
space:
mode:
authorAlejandro Enedino Hernandez Samaniego <alejandro.enedino.hernandez-samaniego@xilinx.com>2018-03-29 23:28:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-31 09:48:42 +0100
commit5d288d286e0adb221649d896c132a607ecddc490 (patch)
tree80712d2cae1b8eed27061ca1d6c44b7cda48b9b9 /meta/recipes-devtools/python/python3/create_manifest3.py
parentdfd5dc1f55bd75068f2a459f67778d23cefc95a4 (diff)
downloadopenembedded-core-contrib-5d288d286e0adb221649d896c132a607ecddc490.tar.gz
python3: fix create_manifest to handle pycache folders
We have a couple of python modules that contain folders themselves, for that reason they also contain a __pycache__ folder inside those directories, since we include the whole folder in the manifest, the pycache directories end up with the files and not the cache files. This patch catches that and adds the directories to the correct structure. (From OE-Core rev: df9401e7e69ce162e257e827d67eb217666e532d) Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3/create_manifest3.py')
-rw-r--r--meta/recipes-devtools/python/python3/create_manifest3.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3/create_manifest3.py b/meta/recipes-devtools/python/python3/create_manifest3.py
index ead27e9fcc..43e95ce96b 100644
--- a/meta/recipes-devtools/python/python3/create_manifest3.py
+++ b/meta/recipes-devtools/python/python3/create_manifest3.py
@@ -186,7 +186,10 @@ for key in old_manifest:
# Ignore folders, since we don't import those, difficult to handle multilib
if isFolder(value):
# Pass folders directly
- new_manifest[key]['files'].append(value)
+ if isCached(value):
+ new_manifest[key]['cached'].append(value)
+ else:
+ new_manifest[key]['files'].append(value)
# Ignore binaries, since we don't import those
if '${bindir}' in value:
# Pass it directly to the new manifest data structure