Merge pull request #1745 from jberry-suse/staging-filter-from-fix

osc-staging: handle None value for --filter-from.
This commit is contained in:
Jimmy Berry 2018-10-25 13:50:05 -05:00 committed by GitHub
commit 78a01722e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -656,9 +656,10 @@ def do_staging(self, subcmd, opts, *args):
if opts.add:
api.mark_additional_packages(target_project, [opts.add])
else:
filter_from = api.prj_from_short(opts.filter_from) if opts.filter_from else None
SelectCommand(api, target_project) \
.perform(requests, opts.move,
api.prj_from_short(opts.filter_from), opts.no_freeze)
filter_from, opts.no_freeze)
elif cmd == 'cleanup_rings':
CleanupRings(api).perform()
elif cmd == 'ignore':