From d484749b79600c7ae1fd035c585fa1153c41fafe Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 18 Nov 2025 20:09:23 +0100 Subject: [PATCH] cmds.CmdListRepos: Don't import from lib Don't directly import from lib (i.e. from __init__.py), because that won't work until "make all" has not run through, i.e. during fresh checkout. Signed-off-by: Jan Lindemann --- src/python/jw/build/cmds/CmdListRepos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/jw/build/cmds/CmdListRepos.py b/src/python/jw/build/cmds/CmdListRepos.py index e6a06afe..d41cc4dd 100644 --- a/src/python/jw/build/cmds/CmdListRepos.py +++ b/src/python/jw/build/cmds/CmdListRepos.py @@ -4,7 +4,7 @@ import re from argparse import Namespace, ArgumentParser from ..Cmd import Cmd -from ..lib import SSHClientCmd, get_username, get_password, run_curl +from ..lib.util import get_username, get_password, run_curl class CmdListRepos(Cmd): # export @@ -28,7 +28,7 @@ class CmdListRepos(Cmd): # export case 'ssh': password = get_password(args=args, url=args.base_url, askpass_env=['GIT_ASKPASS', 'SSH_ASKPASS']) if re.match(r'ssh://.*git\.janware\.com/', args.base_url): - from jw.build.lib import SSHClientCmd as SSHClient + from jw.build.libSSHClientCmd import SSHClientCmd as SSHClient ssh = SSHClient(hostname=url.hostname) if username is not None: ssh.set_username(username)