glib/gio/gdbus-2.0/codegen
Aleksander Morgado 724c8a1846 gdbus-codegen: avoid error when wrong interface is provided to --annotate
If the interface given cannot be matched, `iface_obj' was left uninitialized and
the iface_obj == None check would end up crashing:

Traceback (most recent call last):
  File "/usr/bin/gdbus-codegen", line 41, in <module>
    sys.exit(codegen_main.codegen_main())
  File "/usr/lib64/gdbus-2.0/codegen/codegen_main.py", line 175, in codegen_main
    apply_annotations(all_ifaces, opts.annotate)
  File "/usr/lib64/gdbus-2.0/codegen/codegen_main.py", line 146, in apply_annotations
    apply_annotation(iface_list, iface, None, None, None, None, key, value)
  File "/usr/lib64/gdbus-2.0/codegen/codegen_main.py", line 64, in apply_annotation
    if iface_obj == None:
UnboundLocalError: local variable 'iface_obj' referenced before assignment

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=683088
2012-09-01 11:53:19 -04:00
..
__init__.py Introduce the UNINSTALLED_GLIB_BUILDDIR environment variable 2011-08-25 16:55:49 -04:00
.gitignore Avoid using - (hyphen) in gdbus-codegen directory name 2011-08-25 16:55:46 -04:00
codegen_docbook.py Updated codegen to work with python3. 2012-07-01 11:14:54 -04:00
codegen_main.py gdbus-codegen: avoid error when wrong interface is provided to --annotate 2012-09-01 11:53:19 -04:00
codegen.py gdbus-codegen: improve casting a tiny wee bit 2012-07-07 17:10:46 -04:00
config.py.in Avoid using - (hyphen) in gdbus-codegen directory name 2011-08-25 16:55:46 -04:00
dbustypes.py gdbus-codegen: Don't generate invalid GObject property names 2012-07-06 09:26:41 -04:00
gdbus-codegen.in Use the same Python as we found in configure 2012-06-29 11:59:33 -03:00
Makefile.am Fix 'make report' 2012-08-16 23:23:16 -04:00
parser.py Updated codegen to work with python3. 2012-07-01 11:14:54 -04:00
utils.py Updated codegen to work with python3. 2012-07-01 11:14:54 -04:00