[elbe-devel] [PATCH 3/5] elbexml: make code better readable
Manuel Traut
manut at linutronix.de
Wed Aug 23 17:08:23 CEST 2017
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/elbexml.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
index c20f3c34..71fb2ec2 100644
--- a/elbepack/elbexml.py
+++ b/elbepack/elbexml.py
@@ -162,10 +162,13 @@ class ElbeXML(object):
pass
elif l.startswith ("deb ") or l.startswith ("deb-src "):
lsplit = l.split (" ")
+ url = lsplit[1]
+ suite = lsplit[2]
+
if lsplit[2].endswith('/'):
- s = "%s/%s" % (lsplit[1], lsplit[2])
+ s = "%s/%s" % (url, suite)
else:
- s = "%s/dists/%s/" % (lsplit[1], lsplit[2])
+ s = "%s/dists/%s/" % (url, suite)
urls.append(s + "Release")
if url_validation == ValidationMode.CHECK_ALL:
--
2.14.1
More information about the elbe-devel
mailing list