aboutsummaryrefslogtreecommitdiffstats
path: root/rrs/tools/common.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-03-24 01:06:36 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commitadd075ae009cc4a79dada1c7540905d945577d0c (patch)
tree81bb7801fbb4f97f1224dcdab144a56f484db776 /rrs/tools/common.py
parentacac7d6e9ce77a0e9aedb6ff2429fff5710edfa6 (diff)
downloadopenembedded-core-contrib-add075ae009cc4a79dada1c7540905d945577d0c.tar.gz
rrs/tools/common.py: ensure we pass a string to loadDataFull()
We're calling translate() on the string deep in the bowels of the parsing code and that doesn't work well if the string is unicode, so convert it to a plain string first. That won't work well if the filename is unicode but the chances of that with a recipe is pretty small I would think. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'rrs/tools/common.py')
-rw-r--r--rrs/tools/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rrs/tools/common.py b/rrs/tools/common.py
index 11a7b4735c..d4ceb7156b 100644
--- a/rrs/tools/common.py
+++ b/rrs/tools/common.py
@@ -108,7 +108,7 @@ def load_recipes(layerbranch, bitbakepath, fetchdir, settings, logger,
if hasattr(tinfoil, 'parse_recipe_file'):
data = tinfoil.parse_recipe_file(fn, appends=False, config_data=d)
else:
- data = bb.cache.Cache.loadDataFull(fn, [], d)
+ data = bb.cache.Cache.loadDataFull(str(fn), [], d)
try:
pv = data.getVar('PV', True)