Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
distrobuild
Commits
f2c9afaf
Commit
f2c9afaf
authored
Apr 12, 2021
by
Mustafa Gezen
🏗
Browse files
Skip tagging to compose if already tagged
parent
d6546e28
Changes
1
Hide whitespace changes
Inline
Side-by-side
distrobuild_scheduler/periodic_tasks.py
View file @
f2c9afaf
...
...
@@ -41,9 +41,17 @@ async def atomic_sign_unsigned_builds():
if
build
.
koji_id
:
koji_session
.
packageListAdd
(
tags
.
compose
(),
build
.
package
.
name
,
"distrobuild"
)
should_tag
=
True
build_tasks
=
koji_session
.
listBuilds
(
taskID
=
build
.
koji_id
)
for
build_task
in
build_tasks
:
koji_session
.
tagBuild
(
tags
.
compose
(),
build_task
[
"nvr"
])
build_history
=
koji_session
.
queryHistory
(
build
=
build_task
[
"build_id"
])
if
"tag_listing"
in
build_history
:
for
tag
in
build_history
[
"tag_listing"
]:
if
tag
[
"tag.name"
]
==
tags
.
compose
():
should_tag
=
False
if
should_tag
:
koji_session
.
tagBuild
(
tags
.
compose
(),
build_task
[
"nvr"
])
build_rpms
=
koji_session
.
listBuildRPMs
(
build_task
[
"build_id"
])
for
rpm
in
build_rpms
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment