def _get_progress(self):
input_data = []<EOL>ret = {}<EOL>last_lines = self.py3.command_output(["<STR_LIT>", "<STR_LIT>", self.emerge_log_file])<EOL>input_data = last_lines.split("<STR_LIT:\n>")<EOL>input_data.reverse()<EOL>for line in input_data:<EOL><INDENT>if "<STR_LIT>" in line:<EOL><INDENT>ret = copy.deepcopy(self.ret_default)<EOL>break<EOL><DEDENT>else:<EOL><INDENT>status_re = re.compile(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>)<EOL>res = status_re.search(line)<EOL>if res is not None:<EOL><INDENT>ret["<STR_LIT:action>"] = res.group("<STR_LIT:a>").lower()<EOL>ret["<STR_LIT>"] = res.group("<STR_LIT>")<EOL>ret["<STR_LIT>"] = res.group("<STR_LIT>")<EOL>ret["<STR_LIT>"] = res.group("<STR_LIT:p>")<EOL>ret["<STR_LIT>"] = res.group("<STR_LIT:t>")<EOL>break<EOL><DEDENT><DEDENT><DEDENT>return ret<EOL>
Get current progress of emerge.
Returns a dict containing current and total value.