PR#3111: Fix older hub errors

Merges #3111
https://pagure.io/koji/pull-request/3111

Fixes: #1401
https://pagure.io/koji/issue/1401
[RFE] add the ability to query builds by Content Generator
This commit is contained in:
Yu Ming Zhu 2021-11-07 09:33:27 +00:00
commit 6f89e387a8

View file

@ -3348,6 +3348,9 @@ def anon_handle_list_builds(goptions, session, args):
if e.args[0].endswith("'pattern'"):
parser.error("The hub doesn't support the 'pattern' argument, please try"
" filtering the result on your local instead.")
if e.args[0].endswith("'cgID'"):
parser.error("The hub doesn't support the 'cg' argument, please try"
" filtering the result on your local instead.")
else:
parser.error("Filter must be provided for list")
if not options.sort_key: