Parsed parameters to install

This commit is contained in:
Kevin Veen-Birkenbach
2025-04-21 15:52:39 +02:00
parent dcea92af1d
commit 382e6dba39
4 changed files with 28 additions and 5 deletions

View File

@@ -238,7 +238,14 @@ For detailed help on each command, use:
)
elif args.command == "pull":
from pkgmgr.pull_with_verification import pull_with_verification
pull_with_verification(selected, REPOSITORIES_BASE_DIR, ALL_REPOSITORIES, args.extra_args, no_verification=args.no_verification, preview=args.preview)
pull_with_verification(
selected,
REPOSITORIES_BASE_DIR,
ALL_REPOSITORIES,
args.extra_args,
args.no_verification,
args.preview
)
else:
exec_proxy_command(command,selected, REPOSITORIES_BASE_DIR, ALL_REPOSITORIES, args.command, args.extra_args, args.preview)
exit(0)

View File

@@ -86,6 +86,16 @@ def install_repos(
cmd_clone = "pkgmgr clone " + " ".join(pkgmgr_packages)
run_command(cmd_clone, preview=preview)
cmd = "pkgmgr install " + " ".join(pkgmgr_packages)
if no_verification:
cmd += " --no-verification"
if update_dependencies:
cmd += " --dependencies"
if clone_mode:
cmd += f" --clone-mode {clone_mode}"
run_command(cmd, preview=preview)
# Install pip packages if defined.

View File

@@ -5,7 +5,13 @@ from pkgmgr.get_repo_identifier import get_repo_identifier
from pkgmgr.get_repo_dir import get_repo_dir
from pkgmgr.verify import verify_repository
def pull_with_verification(selected_repos, repositories_base_dir, all_repos, extra_args, no_verification, preview=False):
def pull_with_verification(
selected_repos,
repositories_base_dir,
all_repos,
extra_args,
no_verification,
preview:bool):
"""
Executes "git pull" for each repository with verification.

View File

@@ -32,9 +32,9 @@ def update_repos(
selected_repos,
repositories_base_dir,
all_repos,
extra_args=[],
no_verification=no_verification,
preview=preview
[],
no_verification,
preview
)
install_repos(