Skip to content

Commit

Permalink
patch-apply: do not log output on success
Browse files Browse the repository at this point in the history
If a patch was successfully applied, the output from the VCS is
meaningless. Hence, this patch disables the live update.
On errors, the full output is still shown.

Signed-off-by: Felix Moessbauer <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
fmoessbauer authored and jan-kiszka committed Feb 11, 2024
1 parent 2806126 commit ecf69f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kas/repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,14 @@ async def apply_patches_async(self):

cmd = self.add_cmd()
(retc, output) = await run_cmd_async(
cmd, cwd=self.path, fail=False)
cmd, cwd=self.path, fail=False, liveupdate=False)
if retc:
raise PatchApplyError('Could not add patched files. repo: '
f'{self.name}, vcs output: {output})')

cmd = self.commit_cmd()
(retc, output) = await run_cmd_async(
cmd, cwd=self.path, fail=False)
cmd, cwd=self.path, fail=False, liveupdate=False)
if retc:
raise PatchApplyError('Could not commit patch changes. repo: '
f'{self.name}, vcs output: {output})')
Expand Down

0 comments on commit ecf69f7

Please sign in to comment.