osclib/select: only check filter-from logic if argument was passed.

This commit is contained in:
Jimmy Berry 2018-10-29 16:00:09 -05:00
parent 9f82d01c1b
commit fa84030142

View File

@ -75,7 +75,7 @@ class SelectCommand(object):
# 'select' command becomes a 'move'
# supersede = (new_rq, package, project)
fprj = self.api.packages_staged[staged_requests[request]]['prj'] if not supersede else supersede[2]
if filter_from != fprj:
if filter_from and filter_from != fprj:
print('Ignoring "{}" in "{}" since not in "{}"'.format(request, fprj, filter_from))
return True