Commits

Michał Górny committed f4459dc

pkgcore: omit virtual packages.

Comments (0)

Files changed (1)

gentoopm/pkgcorepm/repo.py

 	def __iter__(self):
 		index = self._index
 		for pkg in self._repo:
-			yield self._pkg_class(pkg, index)
+			if pkg.package_is_real:
+				yield self._pkg_class(pkg, index)
 
 	def filter(self, *args, **kwargs):
 		r = self
 	def __iter__(self):
 		index = self._index
 		for pkg in self._repo._repo.match(self._filt):
-			yield self._pkg_class(pkg, index)
+			if pkg.package_is_real:
+				yield self._pkg_class(pkg, index)
 
 	def filter(self, *args, **kwargs):
 		r = self