... and by extension misc/update-glib-annotations.py.
Commit
5c70ef2eb32949f8889e9ae654d50bfbf838951f broke
these by assuming create_source_scanner() is always
called with 'options' and 'args' built by the
OptionParser() defined in scannermain.py's
_get_option_parser().
This is not the case with g-ir-annotationtool, where
annotationmain.py's annotation_main() creates it's
own OptionParser() accepting a different set of
'options' and 'args' as compared to scannermain.py
return shlibs
def create_source_scanner(options, args):
- if options.filelist:
+ if hasattr(options, 'filelist') and options.filelist:
filenames = extract_filelist(options)
else:
filenames = extract_filenames(args)
if options.test_codegen:
return test_codegen(options.test_codegen)
- if not options.filelist:
+ if hasattr(options, 'filelist') and not options.filelist:
if len(args) <= 1:
_error('Need at least one filename')