block_pkglist compatibility fix
On older hubs --force is not supported, so CLI will fail on unknown parameter. This use force option only if it is explicitly required. Fixes: https://pagure.io/koji/issue/1388
This commit is contained in:
parent
c6f3b23ecf
commit
b4755745a2
2 changed files with 9 additions and 4 deletions
|
|
@ -388,7 +388,12 @@ def handle_block_pkg(goptions, session, args):
|
|||
return ret
|
||||
session.multicall = True
|
||||
for package in args[1:]:
|
||||
session.packageListBlock(tag, package, force=options.force)
|
||||
# force is not supported on older hub, so use it only explicitly
|
||||
# https://pagure.io/koji/issue/1388
|
||||
if options.force:
|
||||
session.packageListBlock(tag, package, force=options.force)
|
||||
else:
|
||||
session.packageListBlock(tag, package)
|
||||
session.multiCall(strict=True)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue