summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-03-04 09:56:01 +1100
committerChris Johns <chrisj@rtems.org>2020-03-04 09:56:01 +1100
commit9e49d20a308f3f7b41b522d147ca08b0f76e6b93 (patch)
treebd3edadf77026dd8c4c0ad945b4d28249a3285bd
parentsb/python-wrapper: Add python2.7 to aid testing (diff)
downloadrtems-source-builder-9e49d20a308f3f7b41b522d147ca08b0f76e6b93.tar.bz2
sb/pkgconfig: Fix python2 issue with caching changes
Closes #3893
-rwxr-xr-xsource-builder/sb/pkgconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source-builder/sb/pkgconfig.py b/source-builder/sb/pkgconfig.py
index 6437f2c..99646f7 100755
--- a/source-builder/sb/pkgconfig.py
+++ b/source-builder/sb/pkgconfig.py
@@ -214,7 +214,8 @@ class package(object):
prefix = default_prefix()
if prefix:
self._log('prefix: %s' % (prefix))
- if type(prefix) is str:
+ if type(prefix) is str or type(prefix) is unicode:
+ prefix = str(prefix)
self.prefix = []
for p in prefix.split(os.pathsep):
self.prefix += [path.shell(p)]