summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-09-09 11:15:04 +0200
committerZac Medico <zmedico@gentoo.org>2010-09-09 04:30:37 -0700
commitc0f7f00ddcfba8e671e9298dd625ee682c661a3d (patch)
treeb50477cf5a1a27bb8eb57213f58400336819b76b
parent01172c4e623ac34ff51f8b9e8d124fd90c863a45 (diff)
downloadportage-c0f7f00ddcfba8e671e9298dd625ee682c661a3d.tar.gz
portage-c0f7f00ddcfba8e671e9298dd625ee682c661a3d.tar.bz2
portage-c0f7f00ddcfba8e671e9298dd625ee682c661a3d.zip
maintainer-info: Don't print 'no-herd' and don't print anything twice (bug 336550)
-rw-r--r--pym/portage/xml/metadata.py5
1 files changed, 5 insertions, 0 deletions
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]