also use multicall for setting the package list
This commit is contained in:
parent
1857271ea8
commit
868212af98
1 changed files with 4 additions and 0 deletions
4
cli/koji
4
cli/koji
|
|
@ -3496,6 +3496,8 @@ def handle_clone_tag(options, session, args):
|
|||
if options.pkgs:
|
||||
srcpkgs = session.listPackages(tagID=srctag['id'], inherited=True, event=event.get('id'))
|
||||
srcpkgs.sort(key = lambda x: x['package_name'])
|
||||
if not options.test:
|
||||
session.multicall = True
|
||||
for pkgs in srcpkgs:
|
||||
# for each package add one entry in the new tag.
|
||||
chgpkglist.append(('[new]',pkgs['package_name'],pkgs['blocked'],pkgs['owner_name'],pkgs['tag_name']))
|
||||
|
|
@ -3504,6 +3506,8 @@ def handle_clone_tag(options, session, args):
|
|||
session.packageListAdd(newtag['name'],pkgs['package_name'],
|
||||
owner=pkgs['owner_name'],block=pkgs['blocked'],
|
||||
extra_arches=pkgs['extra_arches'])
|
||||
if not options.test:
|
||||
session.multiCall()
|
||||
if options.builds:
|
||||
# get --all latest builds from src tag
|
||||
builds = session.listTagged(srctag['id'], event=event.get('id'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue