From f391deaf0142301384e7485a6c3ca39c2f1741f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 13 Sep 2024 11:19:52 +0200 Subject: [PATCH] get_apps_repo.from_args: support when allow_temp was false --- appslib/get_apps_repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appslib/get_apps_repo.py b/appslib/get_apps_repo.py index 7579c0a..cadb0ee 100644 --- a/appslib/get_apps_repo.py +++ b/appslib/get_apps_repo.py @@ -59,7 +59,7 @@ def from_args(args: Optional[argparse.Namespace]) -> Path: assert args is not None if args.apps_dir is not None: APPS_REPO_PATH = args.apps_dir - elif args.apps_repo is not None: + elif "apps_repo" in args and args.apps_repo is not None: APPS_REPO_TMPDIR = tempfile.TemporaryDirectory(prefix="yunohost_apps_") APPS_REPO_PATH = Path(APPS_REPO_TMPDIR.name) logging.info("Cloning the 'apps' repository...")