[rtems-source-builder commit] sb/pkgconfig: Fix python2 issue with caching changes

Chris Johns chrisj at rtems.org
Tue Mar 3 23:22:02 UTC 2020


Module:    rtems-source-builder
Branch:    master
Commit:    9e49d20a308f3f7b41b522d147ca08b0f76e6b93
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=9e49d20a308f3f7b41b522d147ca08b0f76e6b93

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Mar  4 09:56:01 2020 +1100

sb/pkgconfig: Fix python2 issue with caching changes

Closes #3893

---

 source-builder/sb/pkgconfig.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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)]



More information about the vc mailing list