Parsed parameters to install
This commit is contained in:
9
main.py
9
main.py
@@ -238,7 +238,14 @@ For detailed help on each command, use:
|
|||||||
)
|
)
|
||||||
elif args.command == "pull":
|
elif args.command == "pull":
|
||||||
from pkgmgr.pull_with_verification import pull_with_verification
|
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:
|
else:
|
||||||
exec_proxy_command(command,selected, REPOSITORIES_BASE_DIR, ALL_REPOSITORIES, args.command, args.extra_args, args.preview)
|
exec_proxy_command(command,selected, REPOSITORIES_BASE_DIR, ALL_REPOSITORIES, args.command, args.extra_args, args.preview)
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|||||||
@@ -86,6 +86,16 @@ def install_repos(
|
|||||||
cmd_clone = "pkgmgr clone " + " ".join(pkgmgr_packages)
|
cmd_clone = "pkgmgr clone " + " ".join(pkgmgr_packages)
|
||||||
run_command(cmd_clone, preview=preview)
|
run_command(cmd_clone, preview=preview)
|
||||||
cmd = "pkgmgr install " + " ".join(pkgmgr_packages)
|
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)
|
run_command(cmd, preview=preview)
|
||||||
|
|
||||||
# Install pip packages if defined.
|
# Install pip packages if defined.
|
||||||
|
|||||||
@@ -5,7 +5,13 @@ from pkgmgr.get_repo_identifier import get_repo_identifier
|
|||||||
from pkgmgr.get_repo_dir import get_repo_dir
|
from pkgmgr.get_repo_dir import get_repo_dir
|
||||||
from pkgmgr.verify import verify_repository
|
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.
|
Executes "git pull" for each repository with verification.
|
||||||
|
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ def update_repos(
|
|||||||
selected_repos,
|
selected_repos,
|
||||||
repositories_base_dir,
|
repositories_base_dir,
|
||||||
all_repos,
|
all_repos,
|
||||||
extra_args=[],
|
[],
|
||||||
no_verification=no_verification,
|
no_verification,
|
||||||
preview=preview
|
preview
|
||||||
)
|
)
|
||||||
|
|
||||||
install_repos(
|
install_repos(
|
||||||
|
|||||||
Reference in New Issue
Block a user