[elbe-devel] [PATCH 07/13] validate_apt_src: fix check for deb-src of debian security
Manuel Traut
manut at linutronix.de
Thu Sep 28 23:59:55 CEST 2017
debian security has the Release file not in source and <arch> directory.
Therefore the check needs to be a bit more generic, than for the other
repos.
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/elbexml.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
index f92e09d2..3fb23721 100644
--- a/elbepack/elbexml.py
+++ b/elbepack/elbexml.py
@@ -173,13 +173,14 @@ class ElbeXML(object):
urls.append(s + "Release")
if url_validation == ValidationMode.CHECK_ALL:
- if l.startswith ("deb-src "):
- urls.append(s + section + "/source/Release")
+ if "updates" in suite:
+ urls.append(s + "/Release")
else:
- if "updates" in suite:
- urls.append(s + "/Release")
+ if l.startswith ("deb-src "):
+ urls.append(s + section + "/source/Release")
else:
urls.append(s + section + "/binary-%s/Release" % buildtype)
+
elif url_validation == ValidationMode.CHECK_BINARIES:
if "updates" in suite:
urls.append(s + section + "/Release")
--
2.14.1
More information about the elbe-devel
mailing list