Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH] portage.xml.metadata: Include maintainer type per GLEP 67
Date: Tue, 12 Jan 2016 13:17:41
Message-Id: 1452604645-18434-1-git-send-email-mgorny@gentoo.org
1 ---
2 pym/portage/xml/metadata.py | 3 +++
3 1 file changed, 3 insertions(+)
4
5 diff --git a/pym/portage/xml/metadata.py b/pym/portage/xml/metadata.py
6 index fcd9dc0..33b9779 100644
7 --- a/pym/portage/xml/metadata.py
8 +++ b/pym/portage/xml/metadata.py
9 @@ -80,6 +80,8 @@ class _Maintainer(object):
10 @ivar name: Maintainer's name. Used for both Gentoo and upstream.
11 @type description: str or None
12 @ivar description: Description of what a maintainer does. Gentoo only.
13 + @type maint_type: str or None
14 + @ivar maint_type: GLEP67 maintainer type (project or person). Gentoo only.
15 @type restrict: str or None
16 @ivar restrict: e.g. &gt;=portage-2.2 means only maintains versions
17 of Portage greater than 2.2. Should be DEPEND string with < and >
18 @@ -92,6 +94,7 @@ class _Maintainer(object):
19 self.email = None
20 self.name = None
21 self.description = None
22 + self.maint_type = node.get('type')
23 self.restrict = node.get('restrict')
24 self.status = node.get('status')
25 for attr in node:
26 --
27 2.7.0

Replies