From 665d3402a28ad0e493f8d3da886cc8ec9bdd4923 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Sun, 3 Jun 2007 08:30:24 +0000 Subject: nomsg --- doc/Changelog | 3 +++ portato/helper.py | 12 +++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 910b64c..36b3129 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +0.7.4.2: +- bugfix in PortageSystem + 0.7.4.1: - added name of overlay the package comes from - filtering "--ask" from EMERGE_DEFAULT_OPTS diff --git a/portato/helper.py b/portato/helper.py index 40aff44..f327f75 100644 --- a/portato/helper.py +++ b/portato/helper.py @@ -10,8 +10,7 @@ # # Written by René 'Necoro' Neumann et.al. -import traceback, os.path, sys -from itertools import chain +import traceback, os.path, sys, types DEBUG = True @@ -99,7 +98,14 @@ def flatten (listOfLists): @returns: flattend list @rtype: list""" - return list(chain(*listOfLists)) + if type(listOfLists) != types.ListType: + return [listOfLists] + + ret = [] + for r in listOfLists: + ret.extend(flatten(r)) + + return ret def unique_array(s): """Stolen from portage_utils: -- cgit v1.2.3