This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new 3872b89  Fix style and SBOM generation result message
3872b89 is described below

commit 3872b890c1fb7b32c27c44eac941ebb0c7d4d868
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Dec 11 19:15:51 2025 +0000

    Fix style and SBOM generation result message
---
 atr/post/draft.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/atr/post/draft.py b/atr/post/draft.py
index 88eaa3e..d360323 100644
--- a/atr/post/draft.py
+++ b/atr/post/draft.py
@@ -27,6 +27,7 @@ import quart
 
 import atr.blueprints.post as post
 import atr.construct as construct
+import atr.db.interaction as interaction
 import atr.form as form
 import atr.get as get
 import atr.log as log
@@ -35,7 +36,6 @@ import atr.shared as shared
 import atr.storage as storage
 import atr.util as util
 import atr.web as web
-from atr.db.interaction import wait_for_task
 
 
 class VotePreviewForm(form.Form):
@@ -202,7 +202,7 @@ async def sbomgen(session: web.Committer, project_name: 
str, version_name: str,
                 sbom_task = await wacp.sbom.generate_cyclonedx(
                     project_name, version_name, creating.old.number, 
path_in_new_revision, sbom_path_in_new_revision
                 )
-                success = await wait_for_task(sbom_task)
+                success = await interaction.wait_for_task(sbom_task)
                 if not success:
                     raise web.FlashError("Internal error: SBOM generation 
timed out")
 
@@ -213,7 +213,7 @@ async def sbomgen(session: web.Committer, project_name: 
str, version_name: str,
 
     return await session.redirect(
         get.compose.selected,
-        success=f"SBOM generation task queued for {rel_path.name}",
+        success=f"SBOM generated for {rel_path.name}",
         project_name=project_name,
         version_name=version_name,
     )


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to