[Libreoffice-commits] core.git: bin/gbuild-to-ide

jan Iversen jani at documentfoundation.org
Mon Jan 16 17:31:31 UTC 2017


 bin/gbuild-to-ide |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit b7e6f68858198cef294774e85134088828c742c3
Author: jan Iversen <jani at documentfoundation.org>
Date:   Mon Jan 16 18:29:52 2017 +0100

    gbuild-to-ide, temporary fix
    
    added test if key is in json file,
    this is needed at least temporary.
    
    Change-Id: I6fca2dff7fd198ac6b324869146c14de5f38b414

diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index cf44d5e..47eaebd 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -117,9 +117,7 @@ class GbuildParser:
                     location = os.path.dirname(jsondata['MAKEFILE'])
                     filesSorted = {}
                     for i in jsonSrc:
-                        if len(jsondata[i]) > 0:
-                            if jsonSrc[i] == '?':
-                                raise Exception('type need conversion')
+                        if i in jsondata and len(jsondata[i]) > 0:
                             filesSorted[i] = sorted(GbuildParser.__split_objs(jsondata[i]))
                         else:
                             filesSorted[i] = []


More information about the Libreoffice-commits mailing list