public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/portagepm/, gentoopm/paludispm/, gentoopm/basepm/
Date: Fri,  9 Sep 2011 21:13:04 +0000 (UTC)	[thread overview]
Message-ID: <7cb9227590dd157e089e4c26cfb615d951fb259c.mgorny@gentoo> (raw)

commit:     7cb9227590dd157e089e4c26cfb615d951fb259c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  9 21:14:37 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep  9 21:14:37 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoopm.git;a=commit;h=7cb92275

Return None in .maintainers when not supported.

---
 gentoopm/basepm/pkg.py    |    4 ++--
 gentoopm/paludispm/pkg.py |    5 +++++
 gentoopm/portagepm/pkg.py |    4 ++++
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/gentoopm/basepm/pkg.py b/gentoopm/basepm/pkg.py
index db3e707..c536a69 100644
--- a/gentoopm/basepm/pkg.py
+++ b/gentoopm/basepm/pkg.py
@@ -346,9 +346,9 @@ class PMPackage(PMAtom, FillMissingComparisons):
 	@abstractproperty
 	def maintainers(self):
 		"""
-		Get the package maintainer list.
+		Get the package maintainer list (or C{None} if unavailable).
 
-		@type: tuple(L{PMPackageMaintainer})
+		@type: tuple(L{PMPackageMaintainer})/C{None}
 		"""
 		pass
 

diff --git a/gentoopm/paludispm/pkg.py b/gentoopm/paludispm/pkg.py
index 5b19b98..fd090c6 100644
--- a/gentoopm/paludispm/pkg.py
+++ b/gentoopm/paludispm/pkg.py
@@ -181,6 +181,11 @@ class PaludisID(PMPackage, PaludisAtom):
 				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()
 

diff --git a/gentoopm/portagepm/pkg.py b/gentoopm/portagepm/pkg.py
index 1a7661f..b9df82d 100644
--- a/gentoopm/portagepm/pkg.py
+++ b/gentoopm/portagepm/pkg.py
@@ -151,6 +151,10 @@ class PortageDBCPV(PMPackage, CompletePortageAtom):
 				self._applied_use)
 
 	@property
+	def maintainers(self):
+		return None
+
+	@property
 	def slotted_atom(self):
 		cp = str(self.key)
 		slot = self.slot



             reply	other threads:[~2011-09-09 21:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-09 21:13 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-07-19  9:56 [gentoo-commits] proj/gentoopm:master commit in: gentoopm/portagepm/, gentoopm/paludispm/, gentoopm/basepm/ Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7cb9227590dd157e089e4c26cfb615d951fb259c.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox