portage.util.lafilefixer module

portage.util.lafilefixer._parse_lafile_contents(contents)

Parses ‘dependency_libs’ and ‘inherited_linker_flags’ lines.

portage.util.lafilefixer.rewrite_lafile(contents)

Given the contents of an .la file, parse and fix it. This operates with strings of raw bytes (assumed to contain some ascii characters), in order to avoid any potential character encoding issues. Raises ‘InvalidData’ if the .la file is invalid. :param contents: the contents of a libtool archive file :type contents: bytes :rtype: tuple :return: (True, fixed_contents) if something needed to be

fixed, (False, None) otherwise.