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 1PlDoV-00088a-8p for garchives@archives.gentoo.org; Fri, 04 Feb 2011 05:02:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91272E0794; Fri, 4 Feb 2011 05:02:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 652BFE0794 for ; Fri, 4 Feb 2011 05:02:22 +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 C649E1B408C for ; Fri, 4 Feb 2011 05:02:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 1BFCF8006A for ; Fri, 4 Feb 2011 05:02:21 +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: <52f6b55d51e2accaa446bc5d6920421959289baa.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master 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: 52f6b55d51e2accaa446bc5d6920421959289baa Date: Fri, 4 Feb 2011 05:02:21 +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: 9466b346a19dad12c9f7ebaf29ace520 commit: 52f6b55d51e2accaa446bc5d6920421959289baa 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 05:02:04 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D52f6b55d51e2accaa446bc5d6920421959289baa 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