[glib] mkenums: Skip unparsed lines



commit f18556749c75629b9bff538dced6311cf77a3ffb
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Jul 17 16:04:03 2017 +0100

    mkenums: Skip unparsed lines
    
    The old glib-mkenums just skipped lines it could not understand.

 gobject/glib-mkenums.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index ca2baa9..8b8dac8 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -192,7 +192,7 @@ def parse_entries(file, file_name):
         elif re.match(r's*\#', line):
             pass
         else:
-            sys.exit("Failed to parse %s." % file_name)
+            print_warning('Failed to parse "{}" in {}'.format(line, file_name))
     return False
 
 help_epilog = '''Production text substitutions:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]