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 1Skk01-0000nZ-Bp for garchives@archives.gentoo.org; Fri, 29 Jun 2012 22:49:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6361AE0810; Fri, 29 Jun 2012 22:48:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 356E8E07E4 for ; Fri, 29 Jun 2012 22:48:26 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8A8DB1B4019 for ; Fri, 29 Jun 2012 22:48:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5DF83E5445 for ; Fri, 29 Jun 2012 22:48:22 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1341009199.3eb4225fa85134f32a2550b5dd9826f72d89cef1.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/ebuild/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/ebuild/ebuilder.py X-VCS-Directories: roverlay/ebuild/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 3eb4225fa85134f32a2550b5dd9826f72d89cef1 X-VCS-Branch: master Date: Fri, 29 Jun 2012 22:48:22 +0000 (UTC) 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: b0150934-c3ad-4217-a9d0-4a29fdbb86b7 X-Archives-Hash: 6a4e8b5827d32d9b01bcf13489f990cc commit: 3eb4225fa85134f32a2550b5dd9826f72d89cef1 Author: Andr=C3=A9 Erdmann mailerd de> AuthorDate: Fri Jun 29 22:33:19 2012 +0000 Commit: Andr=C3=A9 Erdmann mailerd de> CommitDate: Fri Jun 29 22:33:19 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/R_overlay.git= ;a=3Dcommit;h=3D3eb4225f ebuilder: don't print empty var lines modified: roverlay/ebuild/ebuilder.py --- roverlay/ebuild/ebuilder.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roverlay/ebuild/ebuilder.py b/roverlay/ebuild/ebuilder.py index aa7d8f5..ae6adcb 100644 --- a/roverlay/ebuild/ebuilder.py +++ b/roverlay/ebuild/ebuilder.py @@ -30,8 +30,10 @@ class Ebuilder ( object ): lines =3D list() for index, e in enumerate ( self._evars ): if e.active(): - lines.append ( str ( e ) ) - if index < last and newline ( index ): lines.append ( '' ) + varstr =3D str ( e ) + if varstr: + lines.append ( str ( e ) ) + if index < last and newline ( index ): lines.append ( '' ) =20 return lines # --- end of get_lines (...) ---