On Fri, 2026-01-30 at 08:36 +0100, 'Jan Kiszka' via kas-devel wrote:
> From: Jan Kiszka <
jan.k...@siemens.com>
>
> If fetching fails, stderr is what we want to report, not the empty
> stdout.
This makes sense. Both patches:
>
> Reported-by: Jörg Sommer <
joerg....@navimatix.de>
> Signed-off-by: Jan Kiszka <
jan.k...@siemens.com>
> ---
> kas/repos.py | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/kas/repos.py b/kas/repos.py
> index 5d0dd78..ed1122d 100644
> --- a/kas/repos.py
> +++ b/kas/repos.py
> @@ -463,11 +463,11 @@ class RepoImpl(Repo):
>
> # Try to fetch if commit/tag/branch/refspec is missing or if --update
> # argument was passed
> - (retc, output) = await run_cmd_async(self.fetch_cmd(),
> + (retc, _, err) = await run_cmd_async(self.fetch_cmd(),
> cwd=self.path,
> - fail=False)
> + fail=False, capture_stderr=True)
> if retc:
> - raise RepoFetchError(self, output)
> + raise RepoFetchError(self, err)
> else:
>
logging.info('Repository %s updated',
self.name)
>
> --
> 2.51.0
>
> You received this message because you are subscribed to the Google Groups "kas-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
Friedrich-Ludwig-Bauer-Str. 3