Commits

Michał Górny committed 3d1f5a4

Portage: fix category-less atom matching.

  • Participants
  • Parent commits 190d6a5

Comments (0)

Files changed (1)

File gentoopm/portagepm/atom.py

 		self._pkg = pkg
 
 	@property
-	def id(self):
-		cpv = self._pkg.id
+	def _cpv(self):
+		cpv = self._pkg._cpv
 		return 'null/%s' % catsplit(cpv)[1]
 
+	@property
+	def slot(self):
+		return self._pkg.slot
+
 class UnexpandedPortageAtom(CompletePortageAtom):
 	"""
 	An atom without a category specified.