commit: 2695175bc8bae1df6ca24736689e7421834ebbb2
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 29 18:59:59 2015 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 15 13:43:16 2016 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=2695175b
portage.xml.metadata: Include maintainer type per GLEP 67
Acked-by: Alexander Berntsen <bernalex <AT> gentoo.org>
pym/portage/xml/metadata.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pym/portage/xml/metadata.py b/pym/portage/xml/metadata.py
index fcd9dc0..33b9779 100644
--- a/pym/portage/xml/metadata.py
+++ b/pym/portage/xml/metadata.py
@@ -80,6 +80,8 @@ class _Maintainer(object):
@ivar name: Maintainer's name. Used for both Gentoo and upstream.
@type description: str or None
@ivar description: Description of what a maintainer does. Gentoo only.
+ @type maint_type: str or None
+ @ivar maint_type: GLEP67 maintainer type (project or person). Gentoo
only.
@type restrict: str or None
@ivar restrict: e.g. >=portage-2.2 means only maintains versions
of Portage greater than 2.2. Should be DEPEND string with < and
>
@@ -92,6 +94,7 @@ class _Maintainer(object):
self.email = None
self.name = None
self.description = None
+ self.maint_type = node.get('type')
self.restrict = node.get('restrict')
self.status = node.get('status')
for attr in node: