summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/garage-sign-version.inc
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2019-01-14 14:06:48 +0100
committerMing Liu <liu.ming50@gmail.com>2019-01-14 14:15:06 +0100
commitd49ae8261680ae2cfd4c0179eff013d2def92e1b (patch)
tree29f2542d8695ab4596525b1c37c7a361bff285bb /recipes-sota/aktualizr/garage-sign-version.inc
parent2782c5c6243736884bcb6f901ed828014601787f (diff)
downloadmeta-updater-d49ae8261680ae2cfd4c0179eff013d2def92e1b.tar.gz
meta: drop True option to getVar calls
Search made with the following regex: getVar ?\((.*), True\), this is to be consistent with OE. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Diffstat (limited to 'recipes-sota/aktualizr/garage-sign-version.inc')
-rw-r--r--recipes-sota/aktualizr/garage-sign-version.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-sota/aktualizr/garage-sign-version.inc b/recipes-sota/aktualizr/garage-sign-version.inc
index 1b89a3d..2cea6c9 100644
--- a/recipes-sota/aktualizr/garage-sign-version.inc
+++ b/recipes-sota/aktualizr/garage-sign-version.inc
@@ -1,11 +1,11 @@
1 1
2python () { 2python () {
3 if d.getVar("GARAGE_SIGN_VERSION", True) or not d.getVar("SOTA_PACKED_CREDENTIALS", True): 3 if d.getVar("GARAGE_SIGN_VERSION") or not d.getVar("SOTA_PACKED_CREDENTIALS"):
4 return 4 return
5 import json 5 import json
6 import urllib.request 6 import urllib.request
7 import zipfile 7 import zipfile
8 with zipfile.ZipFile(d.getVar("SOTA_PACKED_CREDENTIALS", True), 'r') as zip_ref: 8 with zipfile.ZipFile(d.getVar("SOTA_PACKED_CREDENTIALS"), 'r') as zip_ref:
9 try: 9 try:
10 with zip_ref.open('tufrepo.url', mode='r') as url_file: 10 with zip_ref.open('tufrepo.url', mode='r') as url_file:
11 url = url_file.read().decode().strip(' \t\n') + '/health/version' 11 url = url_file.read().decode().strip(' \t\n') + '/health/version'