Skip to content
Snippets Groups Projects
Commit 8c4c3e8b authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

[changelog] check if bob.devtools is not already in there.

parent 35535739
No related branches found
No related tags found
No related merge requests found
...@@ -131,15 +131,17 @@ def changelog(target, changelog, group, mode, since): ...@@ -131,15 +131,17 @@ def changelog(target, changelog, group, mode, since):
# Since tagging packages requires bob.devtools to be tagged first. Add that to the # Since tagging packages requires bob.devtools to be tagged first. Add that to the
# list as well if bob.devtools has changed. Note that bob.devtools can release # list as well if bob.devtools has changed. Note that bob.devtools can release
# itself. # itself.
bob_devtools = "bob/bob.devtools"
def bdt_has_changes(): def bdt_has_changes():
gitpkg = gl.projects.get("bob/bob.devtools") gitpkg = gl.projects.get(bob_devtools)
tag = get_last_tag(gitpkg) tag = get_last_tag(gitpkg)
last_tag_date = parse_date(tag.commit["committed_date"]) last_tag_date = parse_date(tag.commit["committed_date"])
_, _, commits = get_changes_since(gitpkg, last_tag_date) _, _, commits = get_changes_since(gitpkg, last_tag_date)
return len(commits) return len(commits)
if bdt_has_changes(): if bob_devtools not in packages and bdt_has_changes():
packages.insert(0, "bob/bob.devtools") packages.insert(0, bob_devtools)
# iterates over the packages and dumps required information # iterates over the packages and dumps required information
for package in packages: for package in packages:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment