devel-project: ensure self does not end up in list.

Otherwise, openSUSE:Factory ends up in the list and causes undesirable
results when using the requires sub-command.
This commit is contained in:
Jimmy Berry 2017-04-18 17:35:43 -05:00
parent 4217ab7fd2
commit a3d840a653

View File

@ -66,6 +66,9 @@ def devel_projects_get(apiurl, project):
if devel is not None:
devel_projects[devel.attrib['project']] = True
# Ensure self does not end up in list.
del devel_projects[project]
return sorted(devel_projects)
def list(args):