This file is indexed.

/usr/lib/python3/dist-packages/DistUtilsExtra/command/build_help.py is in python3-distutils-extra 2.32-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'''Implement the Distutils "build_help" command.'''

from glob import glob
import os.path
import distutils.cmd

class build_help(distutils.cmd.Command):
    description = 'install docbook XML based documentation'
    user_options= [('help-dir', None, 'help directory in the source tree')]
	
    def initialize_options(self):
        self.help_dir = None

    def finalize_options(self):
        if self.help_dir is None:
            self.help_dir = 'help'

    def get_data_files(self):
        data_files = []
        name = self.distribution.metadata.name
        omf_pattern = os.path.join(self.help_dir, '*', '*.omf')

        for path in glob(os.path.join(self.help_dir, '*')):
            lang = os.path.basename(path)
            path_xml = os.path.join('share/gnome/help', name, lang)
            path_figures = os.path.join('share/gnome/help', name, lang, 'figures')
            
            docbook_files = glob('%s/*.xml' % path)
            mallard_files = glob('%s/*.page' % path)
            data_files.append((path_xml, docbook_files + mallard_files))
            data_files.append((path_figures, glob('%s/figures/*.png' % path)))
        
        omf_files = glob(omf_pattern)
        if omf_files:
            data_files.append((os.path.join('share', 'omf', name), omf_files))
        
        return data_files
    
    def run(self):
        self.announce('Setting up help files...')
        
        data_files = self.distribution.data_files
        data_files.extend(self.get_data_files())