From: Sebastian Luther Date: Thu, 9 Sep 2010 09:15:04 +0000 (+0200) Subject: maintainer-info: Don't print 'no-herd' and don't print anything twice (bug 336550) X-Git-Tag: v2.2_rc79~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c0f7f00ddcfba8e671e9298dd625ee682c661a3d;p=portage.git maintainer-info: Don't print 'no-herd' and don't print anything twice (bug 336550) --- diff --git a/pym/portage/xml/metadata.py b/pym/portage/xml/metadata.py index 0515c6929..c357d9966 100644 --- a/pym/portage/xml/metadata.py +++ b/pym/portage/xml/metadata.py @@ -38,6 +38,7 @@ except ImportError: import re import portage from portage import os +from portage.util import unique_everseen class _Maintainer(object): """An object for representing one maintainer. @@ -328,11 +329,15 @@ class MetaDataXML(object): maintainers.append(maintainer.email) for herd, email in self.herds(include_email=True): + if herd == "no-herd": + continue if email is None: maintainers.append(herd) else: maintainers.append(email) + maintainers = list(unique_everseen(maintainers)) + maint_str = "" if maintainers: maint_str = maintainers[0]