Skip to content

Commit 0a4859b

Browse files
committed
Bisect only works if input is sorted ..
1 parent 4b01e80 commit 0a4859b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

find_closest_cache.py

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def has_cache_file(d, distro):
114114
# find_cache_dirs_for_distro(base_dir, ros_distro)
115115
candidates = [d for d in listdir(base_dir) if has_cache_file(path.join(base_dir, d), ros_distro)]
116116
epochs = [int(d) for d in candidates if d.isdigit()]
117+
epochs.sort()
117118
if not epochs:
118119
log("ERR : no candidates left after filtering")
119120
closest_cache_path = ''

0 commit comments

Comments
 (0)