File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments