From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PlEpq-0003JD-Oo for garchives@archives.gentoo.org; Fri, 04 Feb 2011 06:07:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE388E08A8; Fri, 4 Feb 2011 06:07:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B0F98E08A8 for ; Fri, 4 Feb 2011 06:07:51 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4CD781B40B6 for ; Fri, 4 Feb 2011 06:07:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id AB1A68006A for ; Fri, 4 Feb 2011 06:07:50 +0000 (UTC) To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Content-type: text/plain; charset=UTF-8 Message-ID: <8457e00ef8526641823799209cac3c753ef0f796.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/utilities.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 8457e00ef8526641823799209cac3c753ef0f796 Date: Fri, 4 Feb 2011 06:07:50 +0000 (UTC) From: zmedico@gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 2ed6f938248344e16efa2b4be258e857 commit: 8457e00ef8526641823799209cac3c753ef0f796 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Thu Feb 3 20:49:31 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Feb 4 06:07:27 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D8457e00ef8526641823799209cac3c753ef0f796 parse_metadata_use(): omit empty text tokens. --- 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 9d4898e..ceb1ba1 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -157,7 +157,8 @@ def parse_metadata_use(xml_tree): uselist[pkg_flag] =3D {} =20 # (flag_restrict can be None) - uselist[pkg_flag][flag_restrict] =3D " ".join("".join(inner_text).spl= it()) + uselist[pkg_flag][flag_restrict] =3D " ".join( \ + [x for x in "".join(inner_text).split() if x]) =20 return uselist =20