diff options
author | André Erdmann <dywi@mailerd.de> | 2012-06-30 00:33:19 +0200 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2012-06-30 00:33:19 +0200 |
commit | 3eb4225fa85134f32a2550b5dd9826f72d89cef1 (patch) | |
tree | 5001ad03ee86043fa0490edd06f72643d0bbfc21 /roverlay/ebuild | |
parent | filter out dependencies provided by eclass (diff) | |
download | R_overlay-3eb4225fa85134f32a2550b5dd9826f72d89cef1.tar.gz R_overlay-3eb4225fa85134f32a2550b5dd9826f72d89cef1.tar.bz2 R_overlay-3eb4225fa85134f32a2550b5dd9826f72d89cef1.zip |
ebuilder: don't print empty var lines
modified: roverlay/ebuild/ebuilder.py
Diffstat (limited to 'roverlay/ebuild')
-rw-r--r-- | 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 = list() for index, e in enumerate ( self._evars ): if e.active(): - lines.append ( str ( e ) ) - if index < last and newline ( index ): lines.append ( '' ) + varstr = str ( e ) + if varstr: + lines.append ( str ( e ) ) + if index < last and newline ( index ): lines.append ( '' ) return lines # --- end of get_lines (...) --- |