]> git.ipfire.org Git - pbs.git/commitdiff
repos: Correctly wrap transactions
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Jan 2025 18:57:01 +0000 (18:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Jan 2025 18:57:01 +0000 (18:57 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/repos.py

index ce0ec098d28b291dab5cd5ce9185adb7ae7c297a..3da418f37f8189bf5421734707f7b0eba4f1691c 100644 (file)
@@ -853,7 +853,7 @@ class Repo(database.Base, database.BackendMixin, database.SoftDeleteMixin):
                                        )
 
                                # Perform the check for the job
-                               with self.db.transaction():
+                               async with await self.db.transaction():
                                        if await job._installcheck(p):
                                                success = True