diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-24 08:15:00 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-24 08:15:00 -0700 |
commit | a0636f13ffcd2f1b38d32e9f289af8008db418fb (patch) | |
tree | a8c57c6ca55187d3cf18eb55a7d39f2916c4801a | |
parent | 32214f9351e680a3f6d4802cbff4748f6561f93c (diff) | |
download | portage-a0636f13ffcd2f1b38d32e9f289af8008db418fb.tar.gz portage-a0636f13ffcd2f1b38d32e9f289af8008db418fb.tar.bz2 portage-a0636f13ffcd2f1b38d32e9f289af8008db418fb.zip |
Bug #334265 - Fix AttributeError triggered by empty herd element in
check_metadata_herds().
-rw-r--r-- | pym/repoman/utilities.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |