Commits

Michał Górny committed 82846ec

Paludis: update getting package contents wrt Paludis API change.

  • Participants
  • Parent commits 08cd9a3

Comments (0)

Files changed (1)

gentoopm/paludispm/pkg.py

 class PaludisInstalledID(PaludisID, PMInstalledPackage):
 	@property
 	def contents(self):
-		return PaludisPackageContents(
-				self._get_meta(self._pkg.contents_key()))
+		try:
+			return PaludisPackageContents(self._pkg.contents())
+		except AttributeError:
+			return PaludisPackageContents(
+					self._get_meta(self._pkg.contents_key()))