diff options
author | 2020-02-18 13:39:08 -0800 | |
---|---|---|
committer | 2020-03-11 16:33:01 -0700 | |
commit | 98cdccea8f0abc88d360c0c7143263b210910611 (patch) | |
tree | 0806d51bfdda0d7c2fa0746af1a3cd66364703e0 /pym/gentoolkit/eclean/cli.py | |
parent | eclean: Rewrite findPackages() (diff) | |
download | gentoolkit-98cdccea8f0abc88d360c0c7143263b210910611.tar.gz gentoolkit-98cdccea8f0abc88d360c0c7143263b210910611.tar.bz2 gentoolkit-98cdccea8f0abc88d360c0c7143263b210910611.zip |
eclean: Add option to delete binpkgs with changed deps
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'pym/gentoolkit/eclean/cli.py')
-rw-r--r-- | pym/gentoolkit/eclean/cli.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/gentoolkit/eclean/cli.py b/pym/gentoolkit/eclean/cli.py index 1a99b3e..39aafd3 100644 --- a/pym/gentoolkit/eclean/cli.py +++ b/pym/gentoolkit/eclean/cli.py @@ -147,6 +147,8 @@ def printUsage(_error=None, help=None): or help in ('all','packages'): print( "Available", yellow("options"),"for the", green("packages"),"action:", file=out) + print( yellow(" --changed-deps")+ + " - delete packages for which ebuild dependencies have changed", file=out) print( yellow(" -i, --ignore-failure")+ " - ignore failure to locate PKGDIR", file=out) print( file=out) @@ -263,6 +265,8 @@ def parseArgs(options={}): options['size-limit'] = parseSize(a) elif o in ("-v", "--verbose") and not options['quiet']: options['verbose'] = True + elif o in ("--changed-deps"): + options['changed-deps'] = True elif o in ("-i", "--ignore-failure"): options['ignore-failure'] = True else: @@ -290,7 +294,7 @@ def parseArgs(options={}): getopt_options['short']['distfiles'] = "fs:" getopt_options['long']['distfiles'] = ["fetch-restricted", "size-limit="] getopt_options['short']['packages'] = "i" - getopt_options['long']['packages'] = ["ignore-failure"] + getopt_options['long']['packages'] = ["ignore-failure", "changed-deps"] # set default options, except 'nocolor', which is set in main() options['interactive'] = False options['pretend'] = False @@ -303,6 +307,7 @@ def parseArgs(options={}): options['fetch-restricted'] = False options['size-limit'] = 0 options['verbose'] = False + options['changed-deps'] = False options['ignore-failure'] = False # if called by a well-named symlink, set the action accordingly: action = None |