1
0
Fork 0

get_apps_repo.from_args: support when allow_temp was false

This commit is contained in:
Félix Piédallu 2024-09-13 11:19:52 +02:00 committed by Salamandar
parent 0ea25c671e
commit f391deaf01

View file

@ -59,7 +59,7 @@ def from_args(args: Optional[argparse.Namespace]) -> Path:
assert args is not None assert args is not None
if args.apps_dir is not None: if args.apps_dir is not None:
APPS_REPO_PATH = args.apps_dir 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_TMPDIR = tempfile.TemporaryDirectory(prefix="yunohost_apps_")
APPS_REPO_PATH = Path(APPS_REPO_TMPDIR.name) APPS_REPO_PATH = Path(APPS_REPO_TMPDIR.name)
logging.info("Cloning the 'apps' repository...") logging.info("Cloning the 'apps' repository...")