Commits

Michał Górny  committed 139c4a6

Move .maintainers to PMInstallablePackage.

  • Participants
  • Parent commits 1ee846c

Comments (0)

Files changed (4)

File gentoopm/basepm/pkg.py

 		pass
 
 	@abstractproperty
-	def maintainers(self):
-		"""
-		Get the package maintainer list (or C{None} if unavailable).
-
-		@type: tuple(L{PMPackageMaintainer})/C{None}
-		"""
-		pass
-
-	@abstractproperty
 	def slotted_atom(self):
 		"""
 		Return an atom matching all packages in the same slot as the package.
 	"""
 	An abstract class for a package which can be installed.
 	"""
-	pass
+
+	@abstractproperty
+	def maintainers(self):
+		"""
+		Get the package maintainer list (or C{None} if unavailable).
+
+		@type: tuple(L{PMPackageMaintainer})/C{None}
+		"""
+		pass
 
 class PMInstalledPackage(PMPackage):
 	"""

File gentoopm/paludispm/pkg.py

 				self._get_meta(self._pkg.choices_key()))
 
 	@property
-	def maintainers(self):
-		# XXX: find_metadata() + magic
-		return None
-
-	@property
 	def _atom(self):
 		return self._pkg.uniquely_identifying_spec()
 
 						other.repository, self.repository)
 
 class PaludisInstallableID(PaludisID, PMInstallablePackage):
-	pass
+	@property
+	def maintainers(self):
+		# XXX: find_metadata() + magic
+		return None
 
 class PaludisInstalledID(PaludisID, PMInstalledPackage):
 	@property

File gentoopm/pkgcorepm/pkg.py

 		return PkgCoreUseSet(self._pkg.iuse, self._pkg.use)
 
 	@property
-	def maintainers(self):
-		return PkgCoreMaintainerTuple(self._pkg.maintainers, self._pkg.herds)
-
-	@property
 	def slotted_atom(self):
 		return PkgCoreAtom(self._pkg.slotted_atom)
 
 		return PkgCorePackageDepSet(self._pkg._raw_pkg.required_use,
 				self._pkg)
 
+	@property
+	def maintainers(self):
+		return PkgCoreMaintainerTuple(self._pkg.maintainers, self._pkg.herds)
+
 	def __lt__(self, other):
 		if not isinstance(other, PkgCorePackage):
 			raise TypeError('Unable to compare %s against %s' % \

File gentoopm/portagepm/pkg.py

 				self._applied_use)
 
 	@property
-	def maintainers(self):
-		return None
-
-	@property
 	def slotted_atom(self):
 		cp = str(self.key)
 		slot = self.slot
 	def repository(self):
 		return self._dbapi.getRepositoryName(self._tree)
 
+	@property
+	def maintainers(self):
+		return None
+
 	def _aux_get(self, *keys):
 		val = map(str, self._dbapi.aux_get(self._cpv, keys,
 				mytree = self._tree))