From 53062196720093fed8bd9a192e1af0b2902409f2 Mon Sep 17 00:00:00 2001 From: Jon Oster Date: Thu, 7 Jun 2018 11:10:07 +0200 Subject: Bugfix: strip whitespace and newlines from tuf URL in credentials.zip --- recipes-sota/aktualizr/garage-sign-version.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-sota/aktualizr/garage-sign-version.inc b/recipes-sota/aktualizr/garage-sign-version.inc index 66e3ffd..f2d04e8 100644 --- a/recipes-sota/aktualizr/garage-sign-version.inc +++ b/recipes-sota/aktualizr/garage-sign-version.inc @@ -8,7 +8,7 @@ python () { with zipfile.ZipFile(d.getVar("SOTA_PACKED_CREDENTIALS", True), 'r') as zip_ref: try: with zip_ref.open('tufrepo.url', mode='r') as url_file: - url = url_file.read().decode() + '/health/version' + url = url_file.read().decode().strip(' \t\n') + '/health/version' except (KeyError, ValueError, RuntimeError): return r = urllib.request.urlopen(url) -- cgit v1.2.3-54-g00ecf