Don't reverse series list in new_release

The list is already sorted such that the order is stein, rocky,
queens, etc. If we reverse it and then look at only everything after
and including stein, we get no results unless there has been a stein
release.

The reversing was originally necessary because we were using
os.listdir to get the list of series, but now that we're reading them
from a yaml file that is already reverse sorted we don't need that.
See d3f7e4e1f5.

Change-Id: Id65de92f89dc02ba076a6b2dfb949a091cf4ce38
This commit is contained in:
Ben Nemec
2018-09-19 17:04:29 +00:00
parent 1979108ff1
commit f816ee2168

View File

@@ -116,7 +116,7 @@ def get_release_history(series, deliverable):
included_series = ['_independent']
else:
status = series_status.SeriesStatus.default()
all_series = list(reversed(list(status.names)))
all_series = list(status.names)
included_series = all_series[all_series.index(series):]
release_history = []
for current_series in included_series: