aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorvolpino <fox91@anche.no>2012-09-14 11:33:57 +0200
committerCorentin Chary <corentin.chary@gmail.com>2012-10-29 13:06:02 +0100
commit60deecd8532361270bc7a212e27971fa7341589a (patch)
treef97667f7d0dbfce03aeb9599fca537e94ecd18fc /bin
parentdjeuscan: really fix scan on demand (diff)
downloadeuscan-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-xbin/euscan7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/euscan b/bin/euscan
index 79053e5..255151b 100755
--- a/bin/euscan
+++ b/bin/euscan
@@ -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']