1 |
commit: 8457e00ef8526641823799209cac3c753ef0f796 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 20:49:31 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 4 06:07:27 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=8457e00ef8526641823799209cac3c753ef0f796 |
7 |
|
8 |
parse_metadata_use(): omit empty text tokens. |
9 |
|
10 |
--- |
11 |
pym/repoman/utilities.py | 3 ++- |
12 |
1 files changed, 2 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py |
15 |
index 9d4898e..ceb1ba1 100644 |
16 |
--- a/pym/repoman/utilities.py |
17 |
+++ b/pym/repoman/utilities.py |
18 |
@@ -157,7 +157,8 @@ def parse_metadata_use(xml_tree): |
19 |
uselist[pkg_flag] = {} |
20 |
|
21 |
# (flag_restrict can be None) |
22 |
- uselist[pkg_flag][flag_restrict] = " ".join("".join(inner_text).split()) |
23 |
+ uselist[pkg_flag][flag_restrict] = " ".join( \ |
24 |
+ [x for x in "".join(inner_text).split() if x]) |
25 |
|
26 |
return uselist |