diff options
-rw-r--r-- | pym/portage/dbapi/porttree.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 956d6a80a..77c88c85a 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -908,7 +908,10 @@ class portdbapi(dbapi): invalid_category = mysplit[0] not in self._categories d={} if mytree: - mytrees = [mytree] + if isinstance(mytree, str): + mytrees = [mytree] + elif not isinstance(mytree, list): + raise AssertionError("Invalid input type: %s" %str(type(mytree))) else: mytrees = self.porttrees for oroot in mytrees: |