Skip to content

Commit

Permalink
bitbake: create an commit when there are some other changes in genera…
Browse files Browse the repository at this point in the history
…ted files (#251)

* even when there aren't any changes in generated recipes

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
  • Loading branch information
shr-project authored and allenh1 committed Dec 3, 2019
1 parent 534b2d9 commit 6670d2c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions superflore/generators/bitbake/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,14 @@ def main():

if num_changes == 0:
info('ROS distro is up to date.')
info('Exiting...')
clean_up()
sys.exit(0)
summary = overlay.get_change_summary()
if len(summary) == 0:
info('Exiting...')
clean_up()
sys.exit(0)
else:
info('But there are some changes in other regenerated files:'
'%s' % summary)

# remove duplicates
delta = gen_delta_msg(total_changes, markup='')
Expand Down

0 comments on commit 6670d2c

Please sign in to comment.