[fix] list-deliverables when branch type is undefined

These changes fix the `list-deliverables --no-stable-branch` command when
`stable-branch-type` is `none`.

Previously projects with `stable-branch-type: none` was returned in
results.

Project with this type of stable branch should be ignored when we
looking for projects with no stable branche (`no-stable-branch`).

Change-Id: I05c0e7e153e9ddbe5bc3632de9bfdde411ab580d
This commit is contained in:
Hervé Beraud 2020-05-18 13:19:26 +02:00
parent 27c15e1028
commit 6f599fe5be
2 changed files with 4 additions and 1 deletions

View File

@ -227,6 +227,8 @@ def main():
continue
if deliv.name == 'release-test':
continue
if deliv.stable_branch_type is None:
continue
if deliv.get_branch_location('stable/' + series) is not None:
continue
if args.unreleased and (deliv.is_released or not deliv.is_releasable):

View File

@ -584,7 +584,8 @@ class Deliverable(object):
@property
def stable_branch_type(self):
return self._data.get('stable-branch-type', 'std')
branch_type = self._data.get('stable-branch-type', 'std')
return None if branch_type == 'none' else branch_type
@property
def cycle_highlights(self):