Commits

Michał Górny committed 4cec22e

Rename pkg.{slotted,unversioned} to *_atom.

  • Participants
  • Parent commits 1e63873

Comments (0)

Files changed (4)

File gentoopm/basepm/pkg.py

 		pass
 
 	@abstractproperty
-	def slotted(self):
+	def slotted_atom(self):
 		"""
 		Return an atom matching all packages in the same slot as the associated
 		package.
 		"""
 		pass
 
+	@property
+	def slotted(self):
+		"""
+		@deprecated: alias for L{PMPackage.slotted_atom}
+		"""
+		return self.slotted_atom
+
 	@abstractproperty
-	def unversioned(self):
+	def unversioned_atom(self):
 		"""
 		Return an atom matching all packages with the same key as the
 		associated package.
 		"""
 		pass
 
+	@property
+	def unversioned(self):
+		"""
+		@deprecated: alias for L{PMPackage.unversioned_atom}
+		"""
+		return self.unversioned_atom
+
 	@abstractmethod
 	def __lt__(self, other):
 		pass

File gentoopm/paludispm/pkg.py

 		return self._pkg.fs_location_key().parse_value()
 
 	@property
-	def slotted(self):
+	def slotted_atom(self):
 		cp = str(self.key)
 		slot = self.slot
 		return PaludisAtom('%s:%s' % (cp, slot), self._env)
 
 	@property
-	def unversioned(self):
+	def unversioned_atom(self):
 		return PaludisAtom(str(self.key), self._env)
 
 	@property

File gentoopm/pkgcorepm/pkg.py

 		return PkgCoreUseSet(self._pkg.iuse, self._pkg.use)
 
 	@property
-	def slotted(self):
+	def slotted_atom(self):
 		return PkgCoreAtom(self._pkg.slotted_atom)
 
 	@property
-	def unversioned(self):
+	def unversioned_atom(self):
 		return PkgCoreAtom(self._pkg.unversioned_atom)
 
 	@property

File gentoopm/portagepm/pkg.py

 				self._applied_use)
 
 	@property
-	def slotted(self):
+	def slotted_atom(self):
 		cp = str(self.key)
 		slot = self.slot
 		return PortageAtom('%s:%s' % (cp, slot))
 
 	@property
-	def unversioned(self):
+	def unversioned_atom(self):
 		return PortageAtom(str(self.key))
 
 	@property