Commits

Michał Górny  committed e6df986

Portage: use _aux_get(), not metadata in new properties.

  • Participants
  • Parent commits 37d1d97

Comments (0)

Files changed (1)

File gentoopm/portagepm/pkg.py

 	pass
 
 class PortagePackageDescription(PMPackageDescription):
-	def __init__(self, meta):
-		self._meta = meta
+	def __init__(self, pkg):
+		self._pkg = pkg
 
 	@property
 	def short(self):
-		return StringWrapper(self._meta['DESCRIPTION'])
+		return StringWrapper(self._pkg._aux_get['DESCRIPTION'])
 
 	@property
 	def long(self):
 
 	@property
 	def description(self):
-		return PortagePackageDescription(self.metadata) # XXX
+		return PortagePackageDescription(self)
 
 	@property
 	def slot(self):
-		return StringWrapper(self.metadata['SLOT']) # XXX
+		return StringWrapper(self._aux_get('SLOT'))
 
 	@property
 	def repository(self):