Skip to content

Commit

Permalink
Reverse sorting for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
trzecieu committed Aug 30, 2019
1 parent a3a0bee commit 9a9a6b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ def get_variants_to_compile(args):
# populate tags_to_compile
for b in branches_to_compile:
tags_to_compile.add(EMHelper.get_sdk_name_branch(b))

for v in versions_to_compile:
tags_to_compile.add(EMHelper.get_sdk_name_tag(v))

Expand All @@ -574,7 +575,7 @@ def create_compilation_sets(variants):
log("{} tag name looks incorect!".format(v), True)

# sort sets
result = sorted(sets.values(), key=lambda x: x.name, cmp=version_compare, reverse=True)
result = sorted(sets.values(), key=lambda x: x.name, cmp=version_compare, reverse=False)
# sort variants in sets
for r in result:
r.variants = sorted(r.variants, cmp=sort_variants)
Expand Down

0 comments on commit 9a9a6b3

Please sign in to comment.