Commits

Michał Górny committed 139c4a6

Move .maintainers to PMInstallablePackage.

Comments (0)

Files changed (4)

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):
 	"""

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

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' % \

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))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.