Gentoo Archives: gentoo-commits

From: zmedico@g.o
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/
Date: Fri, 04 Feb 2011 05:02:31
Message-Id: 52f6b55d51e2accaa446bc5d6920421959289baa.zmedico@gentoo
1 commit: 52f6b55d51e2accaa446bc5d6920421959289baa
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 05:02:04 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=52f6b55d51e2accaa446bc5d6920421959289baa
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