From d7f9fc7260d66ec427948cd5dcc2905cdb6f87ad Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 17 Feb 2026 18:01:57 +0100 Subject: [PATCH] CmdAuthInfo: Fix no output jw-pkg.py projects get-auth-info doesn't print anything, fix that. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py b/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py index b77def11..470a8680 100644 --- a/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py +++ b/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py @@ -35,14 +35,14 @@ class CmdGetAuthInfo(Cmd): # export if re.match(r'^\s*$', line): continue name, url, typ = re.split(r'\s+', line) - if name == 'origin' and typ == '(pull)': # TODO: Use other remotes, too? + if name == 'origin' and typ in ['(pull)', '(fetch)']: # TODO: Use other remotes, too? parsed = urlparse(url) for key in keys: result[key] = getattr(parsed, key) base = parsed.geturl() base = re.sub(r'/jw-pkg', '', base) base = re.sub(r'/proj$', '', base) - url['remote-base'] = base + result['remote_base'] = base break # --- Print results