Commits

Michał Górny committed 91c5107

Fix all-of-deps handling in portage.

(API change?)

Comments (0)

Files changed (1)

gentoopm/portagepm/depend.py

 	def __iter__(self):
 		it = iter(self._deps)
 		for d in it:
-			if d == '||':
+			if isinstance(d, list):
+				yield PortageAllOfDep(it, self._args)
+			elif d == '||':
 				yield PortageAnyOfDep(next(it), self._args)
 			elif d == '&&':
 				yield PortageAllOfDep(next(it), self._args)