diff options
author | Michał Górny <mgorny@gentoo.org> | 2011-02-03 21:49:31 +0100 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-03 22:07:27 -0800 |
commit | 8457e00ef8526641823799209cac3c753ef0f796 (patch) | |
tree | 0905cd8a6e97647c0d058ce0b8136ffd4ed318c6 /pym/repoman/utilities.py | |
parent | a71e97b24a30f434fd2ea2ca60c761fa54214799 (diff) | |
download | portage-8457e00ef8526641823799209cac3c753ef0f796.tar.gz portage-8457e00ef8526641823799209cac3c753ef0f796.tar.bz2 portage-8457e00ef8526641823799209cac3c753ef0f796.zip |
parse_metadata_use(): omit empty text tokens.
Diffstat (limited to 'pym/repoman/utilities.py')
-rw-r--r-- | pym/repoman/utilities.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 9d4898e8a..ceb1ba17d 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -157,7 +157,8 @@ def parse_metadata_use(xml_tree): uselist[pkg_flag] = {} # (flag_restrict can be None) - uselist[pkg_flag][flag_restrict] = " ".join("".join(inner_text).split()) + uselist[pkg_flag][flag_restrict] = " ".join( \ + [x for x in "".join(inner_text).split() if x]) return uselist |