aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCorentin Chary <corentin.chary@gmail.com>2012-07-20 08:22:52 +0200
committerCorentin Chary <corentin.chary@gmail.com>2012-07-20 08:41:12 +0200
commitbcda1a7ce349a130990c29536798b3a42bf079cb (patch)
tree8a0003c9be5a101ab57a709667acd89317e601dc /bin
parenteuscanwww: using djcelery.schedulers.DatabaseScheduler for periodic tasks (diff)
downloadeuscan-bcda1a7ce349a130990c29536798b3a42bf079cb.tar.gz
euscan-bcda1a7ce349a130990c29536798b3a42bf079cb.tar.bz2
euscan-bcda1a7ce349a130990c29536798b3a42bf079cb.zip
euscan: add --ebuild-uri to use ${PV}, etc.
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/euscan13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/euscan b/bin/euscan
index 784daf9..8696848 100755
--- a/bin/euscan
+++ b/bin/euscan
@@ -128,7 +128,10 @@ def print_usage(_error=None, help=None):
print(yellow(" -I, --ignore-pre-release-if-stable") +
" - Ignore non-stable versions only if current\n" +
" " * 38 + "version is stable", file=out)
-
+ print(yellow(" --mirror") +
+ " - use mirror:// URIs", file=out)
+ print(yellow(" --ebuild-uri") +
+ " - use ebuild variables in URIs", file=out)
print(file=out)
if _error in ('packages',) or help:
@@ -182,12 +185,14 @@ def parse_args():
pp.output.nocolor()
elif o in ("-p", "--progress"):
CONFIG['progress'] = isatty
- elif o in ("-m", "--mirror"):
+ elif o in ("--mirror"):
CONFIG['mirror'] = True
elif o in ("-i", "--ignore-pre-release"):
CONFIG['ignore-pre-release'] = True
elif o in ("-I", "--ignore-pre-release-if-stable"):
CONFIG['ignore-pre-release-if-stable'] = True
+ elif o in ("--ebuild-uri"):
+ CONFIG['ebuild-uri'] = True
else:
return_code = False
@@ -195,11 +200,11 @@ def parse_args():
# here are the different allowed command line options (getopt args)
getopt_options = {'short': {}, 'long': {}}
- getopt_options['short']['global'] = "hVCqv1bf:pmiI"
+ getopt_options['short']['global'] = "hVCqv1bf:piI"
getopt_options['long']['global'] = [
"help", "version", "nocolor", "quiet", "verbose", "oneshot",
"brute-force=", "format=", "progress", "mirror", "ignore-pre-release",
- "ignore-pre-release-if-stable",
+ "ignore-pre-release-if-stable", "ebuild-uri"
]
short_opts = getopt_options['short']['global']