From ce23a229b4ed1e5ac1b1449fc39e43a309798df3 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 20 Jan 2017 11:34:55 +0100 Subject: [PATCH] [mod] make code more lisible --- list_builder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/list_builder.py b/list_builder.py index 55740fb1..e0ff66fa 100755 --- a/list_builder.py +++ b/list_builder.py @@ -85,7 +85,10 @@ for app, info in apps_list.items(): manifest = {} timestamp = None - if already_built_file.get(app, {}).get("git", {}).get("revision", None) == app_rev and already_built_file.get(app, {}).get("git", {}).get("url") == app_url: + revision = already_built_file.get(app, {}).get("git", {}).get("revision", None) + url = already_built_file.get(app, {}).get("git", {}).get("url") + + if revision == app_rev and url == app_url: print("%s[%s] is already up to date in target output, ignore" % (app, app_rev)) result_dict[app] = already_built_file[app] continue