[elbe-devel] [PATCH 2/3] commands preprocess: Add proxy option
Torben Hohn
torben.hohn at linutronix.de
Wed Jun 3 11:02:01 CEST 2020
On Mon, Jun 01, 2020 at 12:12:10PM -0400, Olivier Dion wrote:
> Signed-off-by: Olivier Dion <dion at linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
> ---
> elbepack/commands/preprocess.py | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/elbepack/commands/preprocess.py b/elbepack/commands/preprocess.py
> index 44e298c4..bc4278e5 100644
> --- a/elbepack/commands/preprocess.py
> +++ b/elbepack/commands/preprocess.py
> @@ -17,6 +17,10 @@ def add_pass_through_options(oparser):
> default=None,
> help="enable only tags with empty or given variant")
>
> + oparser.add_option("-p", "--proxy", dest="proxy",
> + default=None,
> + help="add proxy to mirrors")
> +
>
> def run_command(argv):
> oparser = OptionParser(usage="usage: %prog preprocess [options] <xmlfile>")
> @@ -40,7 +44,7 @@ def run_command(argv):
> variants = opt.variant.split(',')
>
> try:
> - xmlpreprocess(args[0], opt.output, variants)
> + xmlpreprocess(args[0], opt.output, variants, opt.proxy)
> except XMLPreprocessError as e:
> print(e, file=sys.stderr)
> sys.exit(20)
> --
> 2.26.2
>
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
More information about the elbe-devel
mailing list