Commit a0163f5c authored by Mustafa Gezen's avatar Mustafa Gezen
Browse files

fix: build should not change last_import

parent 1e75ff73
......@@ -38,7 +38,8 @@ from distrobuild_scheduler.utils import gitlabify
async def do(package: Package, build: Build, token: Optional[str]):
try:
if build.mbs:
task_id = await mbs_client.build(token, package.name, build.import_commit.branch, build.import_commit.commit)
task_id = await mbs_client.build(token, package.name, build.import_commit.branch,
build.import_commit.commit)
build.mbs_id = task_id
build.status = BuildStatus.BUILDING
......@@ -65,9 +66,6 @@ async def do(package: Package, build: Build, token: Optional[str]):
await build.save()
except Exception:
raise
else:
package.last_import = datetime.datetime.now()
await package.save()
# noinspection DuplicatedCode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment