Merge lp:~vorlon/ubuntu-cdimage/match-series-for-current-triggers into lp:ubuntu-cdimage
Proposed by
Steve Langasek
on 2017-05-16
| Status: | Merged |
|---|---|
| Merged at revision: | 1667 |
| Proposed branch: | lp:~vorlon/ubuntu-cdimage/match-series-for-current-triggers |
| Merge into: | lp:ubuntu-cdimage |
| Diff against target: |
34 lines (+4/-2) 2 files modified
lib/cdimage/tests/test_tree.py (+3/-1) lib/cdimage/tree.py (+1/-1) |
| To merge this branch: | bzr merge lp:~vorlon/ubuntu-cdimage/match-series-for-current-triggers |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Adam Conrad | 2017-05-16 | Approve on 2017-05-16 | |
| Ubuntu CD Image Team | 2017-05-16 | Pending | |
|
Review via email:
|
|||
To post a comment you must log in.

Instead of adding the prev_series logic to the test, you could just hardcode, say, "precise-" in the series field of the triggers file, guaranteeing that we're testing that all new series are satisfied by that constraint.
Not a huge difference, but testing that "series" is contained in the set of "series - 1; continuing" is using the same set of methods to test in both directions, which means a bug in ordering would go unnoticed, as series-1+1 will always be series, even if the actual sort order is wrong.
Change or don't, but it also saves you a line of code. +1 with or without the above consideration.
(I assume merging this and pulling it on nusakan will come hand-in-hand with an edit of the production file)