diff --git a/main.py b/main.py index 48eff07..e9f8889 100755 --- a/main.py +++ b/main.py @@ -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) diff --git a/pkgmgr/install_repos.py b/pkgmgr/install_repos.py index c82d2f7..3c667eb 100644 --- a/pkgmgr/install_repos.py +++ b/pkgmgr/install_repos.py @@ -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. diff --git a/pkgmgr/pull_with_verification.py b/pkgmgr/pull_with_verification.py index d68dd67..1dca281 100644 --- a/pkgmgr/pull_with_verification.py +++ b/pkgmgr/pull_with_verification.py @@ -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. diff --git a/pkgmgr/update_repos.py b/pkgmgr/update_repos.py index 74107e1..84ef268 100644 --- a/pkgmgr/update_repos.py +++ b/pkgmgr/update_repos.py @@ -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(