From c3148de50fb95df93f7daf8d515914a83c4720be Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Fri, 17 Jun 2016 11:08:52 +1000 Subject: [PATCH] Use repo name rather than project team for the new deliverable file The project team name is no longer a great default for when importing history. Use the 'basename' of the git repo we're importing instead. Change-Id: I2ee75f116101d5712bd2fdc821c4f9bc3e60e2d0 --- tools/tag_history_from_git.py | 2 +- tools/tag_history_from_lp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tag_history_from_git.py b/tools/tag_history_from_git.py index 555b720b52..0f5a57279f 100755 --- a/tools/tag_history_from_git.py +++ b/tools/tag_history_from_git.py @@ -116,7 +116,7 @@ for series, milestones in sorted(series_data.items()): if not os.path.exists(d): print('creating directory %s' % d) os.makedirs(d) - filename = '%s/%s.yaml' % (d, args.project) + filename = '%s/%s.yaml' % (d, os.path.basename(repo)) print('creating %s' % filename) with open(filename, 'w') as f: f.write('---\n') diff --git a/tools/tag_history_from_lp.py b/tools/tag_history_from_lp.py index 6d2eb7ceda..db432a3d32 100755 --- a/tools/tag_history_from_lp.py +++ b/tools/tag_history_from_lp.py @@ -102,7 +102,7 @@ for series, milestones in sorted(series_data.items()): if not os.path.exists(d): print('creating directory %s' % d) os.makedirs(d) - filename = '%s/%s.yaml' % (d, args.project) + filename = '%s/%s.yaml' % (d, os.path.basename(repo)) print('creating %s' % filename) with open(filename, 'w') as f: f.write('---\n')