1. Michał Górny
  2. gentoopm

Commits

Michał Górny  committed bf623fe

Paludis: update USEflag grepping API.

  • Participants
  • Parent commits a6bb6da
  • Branches master

Comments (0)

Files changed (1)

File gentoopm/paludispm/pkg.py

View file
  • Ignore whitespace
 				if group.raw_name == 'build_options': # paludis specific
 					continue
 				for c in group:
-					if c.explicitly_listed:
-						yield PaludisChoice(c)
+					try:
+						if c.origin != paludis.ChoiceOrigin.EXPLICIT:
+							continue
+					except AttributeError:
+						if not c.explicitly_listed:
+							continue
+					yield PaludisChoice(c)
 
 		self._choices = choices
 		return SpaceSepFrozenSet.__new__(self, _get_iuse())