[elbe-devel] [PATCH] elbexml: skip sources.list validation if url_validtion is disabled

Manuel Traut manut at linutronix.de
Tue Aug 8 15:28:41 CEST 2017


the url_validation was introduced to explicitly skip accessing any
URLs but this is done by validate_apt_sources

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/elbexml.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
index 36283a41..ca38b9cf 100644
--- a/elbepack/elbexml.py
+++ b/elbepack/elbexml.py
@@ -73,7 +73,7 @@ class ElbeXML(object):
             buildtype = "nodefaults"
         self.defs = ElbeDefaults(buildtype)
 
-        if not skip_validate:
+        if not skip_validate and not (url_validation == ValidationMode.NO_CHECK):
             self.validate_apt_sources (url_validation, buildtype)
 
 
-- 
2.14.0




More information about the elbe-devel mailing list