From a7fe6f97b8e73ef393f901f7907c29084e53d40f Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 23 Jan 2011 20:31:51 +0100 Subject: [PATCH] [entropy.spm] PortagePlugin: remove unused method _extract_elog --- .../interfaces/portage_plugin/__init__.py | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/libraries/entropy/spm/plugins/interfaces/portage_plugin/__init__.py b/libraries/entropy/spm/plugins/interfaces/portage_plugin/__init__.py index d068a87db..985aa5448 100644 --- a/libraries/entropy/spm/plugins/interfaces/portage_plugin/__init__.py +++ b/libraries/entropy/spm/plugins/interfaces/portage_plugin/__init__.py @@ -3491,36 +3491,6 @@ class PortagePlugin(SpmPlugin): return 0 - def _extract_elog(self, logfile): - """ - Extract Portage package merge log file information. - - @param logfile: path to log file - @type logfile: string - @return: content of the log file - @rtype: string - """ - - logline = False - logoutput = [] - f = open(logfile, "r") - reallog = f.readlines() - f.close() - - for line in reallog: - if line.startswith("INFO: postinst") or \ - line.startswith("LOG: postinst"): - logline = True - continue - # disable all the others - elif line.startswith("LOG:"): - logline = False - continue - if (logline) and (line.strip()): - # trap ! - logoutput.append(line.strip()) - return logoutput - def _get_portage_vartree(self, root = None): if root is None: