From: Zac Medico Date: Tue, 24 Aug 2010 15:15:00 +0000 (-0700) Subject: Bug #334265 - Fix AttributeError triggered by empty herd element in X-Git-Tag: v2.2_rc69~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0636f13ffcd2f1b38d32e9f289af8008db418fb;p=portage.git Bug #334265 - Fix AttributeError triggered by empty herd element in check_metadata_herds(). --- diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 8e15de083..9dd5cde35 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -143,7 +143,7 @@ class UnknownHerdsError(ValueError): def check_metadata_herds(xml_tree, herd_base): herd_nodes = xml_tree.findall('herd') unknown_herds = [name for name in - (e.text.strip() for e in herd_nodes) + (e.text.strip() for e in herd_nodes if e.text is not None) if not herd_base.known_herd(name)] if unknown_herds: