archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gtk-doc / repos / extra-any / fix.diff
blob95250c08ef61c46005e92da619682fdca5a73b28
1 diff --git i/gtkdoc/highlight.py w/gtkdoc/highlight.py
2 index ba1c601..226aa12 100644
3 --- i/gtkdoc/highlight.py
4 +++ w/gtkdoc/highlight.py
5 @@ -46,6 +46,9 @@ def highlight_code(code, lang='c'):
8 def append_style_defs(css_file_name):
9 - os.chmod(css_file_name, 0o644)
10 + try:
11 + os.chmod(css_file_name, 0o644)
12 + except OSError:
13 + pass
14 with open(css_file_name, 'at', newline='\n', encoding='utf-8') as css:
15 css.write(HTML_FORMATTER.get_style_defs())
16 diff --git i/gtkdoc/scan.py w/gtkdoc/scan.py
17 index 4b5b8a9..7963840 100644
18 --- i/gtkdoc/scan.py
19 +++ w/gtkdoc/scan.py
20 @@ -978,8 +978,8 @@ def ScanHeaderContent(input_lines, decl_list, get_types, options):
21 logging.info('struct/union level : %d', level)
23 # here we want in_declaration=='', otherwise we have a partial declaration
24 - if in_declaration != '':
25 - raise RuntimeError('partial declaration (%s) : %s ' % (in_declaration, decl))
26 + #if in_declaration != '':
27 + # raise RuntimeError('partial declaration (%s) : %s ' % (in_declaration, decl))
29 # print remaining forward declarations
30 for symbol in sorted(forward_decls.keys()):