diff options
Diffstat (limited to 'scripts/lib/recipetool/create.py')
| -rw-r--r-- | scripts/lib/recipetool/create.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 6ed4ad0ff7..cd86747821 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
| @@ -714,7 +714,13 @@ def create_recipe(args): | |||
| 714 | sys.stdout.write('\n'.join(outlines) + '\n') | 714 | sys.stdout.write('\n'.join(outlines) + '\n') |
| 715 | else: | 715 | else: |
| 716 | with open(outfile, 'w') as f: | 716 | with open(outfile, 'w') as f: |
| 717 | f.write('\n'.join(outlines) + '\n') | 717 | lastline = None |
| 718 | for line in outlines: | ||
| 719 | if not lastline and not line: | ||
| 720 | # Skip extra blank lines | ||
| 721 | continue | ||
| 722 | f.write('%s\n' % line) | ||
| 723 | lastline = line | ||
| 718 | logger.info('Recipe %s has been created; further editing may be required to make it fully functional' % outfile) | 724 | logger.info('Recipe %s has been created; further editing may be required to make it fully functional' % outfile) |
| 719 | 725 | ||
| 720 | if tempsrc: | 726 | if tempsrc: |
