diff options
author | 2012-09-14 11:33:57 +0200 | |
---|---|---|
committer | 2012-10-29 13:06:02 +0100 | |
commit | 60deecd8532361270bc7a212e27971fa7341589a (patch) | |
tree | f97667f7d0dbfce03aeb9599fca537e94ecd18fc /bin | |
parent | djeuscan: really fix scan on demand (diff) | |
download | euscan-60deecd8532361270bc7a212e27971fa7341589a.tar.gz euscan-60deecd8532361270bc7a212e27971fa7341589a.tar.bz2 euscan-60deecd8532361270bc7a212e27971fa7341589a.zip |
euscan: Adding support for disabling handlers
Signed-off-by: volpino <fox91@anche.no>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/euscan | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -133,6 +133,9 @@ def print_usage(_error=None, help=None): " - use mirror:// URIs", file=out) print(yellow(" --ebuild-uri") + " - use ebuild variables in URIs", file=out) + print(yellow(" --no-handlers") + + " - exclude handlers (comma-separated list)", + file=out) print(file=out) if _error in ('packages',) or help: @@ -194,6 +197,8 @@ def parse_args(): CONFIG['ignore-pre-release-if-stable'] = True elif o in ("--ebuild-uri"): CONFIG['ebuild-uri'] = True + elif o in ("--no-handlers"): + CONFIG['handlers-exclude'] = a.split(",") else: return_code = False @@ -205,7 +210,7 @@ def parse_args(): getopt_options['long']['global'] = [ "help", "version", "nocolor", "quiet", "verbose", "oneshot", "brute-force=", "format=", "progress", "mirror", "ignore-pre-release", - "ignore-pre-release-if-stable", "ebuild-uri" + "ignore-pre-release-if-stable", "ebuild-uri", "no-handlers=" ] short_opts = getopt_options['short']['global'] |