[elbe-devel] [PATCH v2 2/5] commands preprocess: Add proxy option

Olivier Dion dion at linutronix.de
Wed Jun 3 17:39:39 CEST 2020


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.27.0




More information about the elbe-devel mailing list