Skip to content

Commit 72abc60

Browse files
authored
release.py: run source jobs from newest distro
1 parent 9930e86 commit 72abc60

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

release.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def discover_distros(repo_dir):
475475
error('Can not find distributions directories in the -release repo')
476476

477477
distro_arch_list = {}
478-
for d in subdirs:
478+
for d in sorted(subdirs):
479479
files = os.walk(repo_dir + '/' + d).__next__()[2]
480480
distro_arch_exclusion = get_exclusion_arches(files)
481481
excluded_arches = distro_arch_exclusion + repo_arch_exclusion
@@ -946,10 +946,10 @@ def go(argv):
946946
# able to install the needed gz-cmake.
947947
if ubuntu_distros:
948948
params['LINUX_DISTRO'] = 'ubuntu'
949-
params['DISTRO'] = list(ubuntu_distros.keys())[0]
949+
params['DISTRO'] = list(ubuntu_distros.keys())[-1]
950950
elif debian_distros:
951951
params['LINUX_DISTRO'] = 'debian'
952-
params['DISTRO'] = list(debian_distros.keys())[0]
952+
params['DISTRO'] = list(debian_distros.keys())[-1]
953953
else:
954954
error("No distributions where found in the release repo")
955955

0 commit comments

Comments
 (0)