From 6ff384e5716dc9392475c35bb381a2872e9f2e6b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 1 Mar 2024 22:42:04 +0000 Subject: * expose the --nodeps option from Portage in Sisyphus CLI * use it to install packages without retreiving their dependencies * rewrite and update the CLI help menu to reflect the new option * some minor cosmetic fixes --- src/backend/solvedeps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/solvedeps.py') diff --git a/src/backend/solvedeps.py b/src/backend/solvedeps.py index d3e8a3b..34d70b8 100644 --- a/src/backend/solvedeps.py +++ b/src/backend/solvedeps.py @@ -17,15 +17,15 @@ signal.signal(signal.SIGINT, sigint_handler) @animation.wait('resolving dependencies') -def start(pkgname=None): +def start(pkgname=None, nodeps=False): bin_list = [] src_list = [] is_vague = int() need_cfg = int() if pkgname: - args = ['--quiet', '--pretend', '--getbinpkg', '--rebuilt-binaries', - '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(pkgname) + args = ['--quiet', '--pretend', '--getbinpkg', '--rebuilt-binaries', '--misspell-suggestion=n', + '--fuzzy-search=n'] + (['--nodeps'] if nodeps else ['--with-bdeps=y']) + list(pkgname) else: args = ['--quiet', '--update', '--deep', '--newuse', '--pretend', '--getbinpkg', '--rebuilt-binaries', '--backtrack=100', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n', '@world'] -- cgit v1.2.3