Skip to content

Commit

Permalink
sorting lists before iterating
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Sep 28, 2012
1 parent 596c22a commit 506967d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/buildfarm/dependency_walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_dependencies(workspace, repository_dict, rosdistro):
package_urls = {}

#print repository_dict
for name, r in repository_dict.items():
for name, r in sorted(repository_dict.items()):
if 'url' not in r:
print "'url' key missing for repository %s; skipping"%(r)
continue
Expand Down
2 changes: 1 addition & 1 deletion src/buildfarm/release_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def doit(release_uri, package, distros, fqdn, job_graph, rosdistro, short_packag
jobs = [source_job] + binary_jobs
successful_jobs = []
failed_jobs = []
for job_name, config in jobs:
for job_name, config in sorted(jobs):
if commit:
if create_jenkins_job(job_name, config, jenkins_instance):
successful_jobs.append(job_name)
Expand Down

0 comments on commit 506967d

Please sign in to comment.