summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-02-03 21:49:31 +0100
committerZac Medico <zmedico@gentoo.org>2011-02-03 21:02:04 -0800
commit52f6b55d51e2accaa446bc5d6920421959289baa (patch)
treeeb991cd7723e19b54ff7dee672a7a7604b4af148
parent644eb3fe5455c12bd1f831812bb17ae582acb3bc (diff)
downloadportage-52f6b55d51e2accaa446bc5d6920421959289baa.tar.gz
portage-52f6b55d51e2accaa446bc5d6920421959289baa.tar.bz2
portage-52f6b55d51e2accaa446bc5d6920421959289baa.zip
parse_metadata_use(): omit empty text tokens.
-rw-r--r--pym/repoman/utilities.py3
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