summaryrefslogtreecommitdiff
path: root/bin/update/tools.py
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-06 04:48:44 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-19 03:43:22 +0200
commit7f52e3848e8b153f8a0b6bb7eef4f40afabe7e69 (patch)
treea19fad240fe462bb0b4f1ab05cf5c15ecdcf5793 /bin/update/tools.py
parent94fd45a29d8302886e132aaf4f8b75b6903e8536 (diff)
move most of the updater settings to ini file
Also finally add the initial version of the upload scripts. Change-Id: I3ad5bcbeba60f0cf9700e5fe5001a24f162a3244
Diffstat (limited to 'bin/update/tools.py')
-rw-r--r--bin/update/tools.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/update/tools.py b/bin/update/tools.py
index 5d0871b299af..84c7ae6fb0ab 100644
--- a/bin/update/tools.py
+++ b/bin/update/tools.py
@@ -42,3 +42,10 @@ def get_file_info(mar_file, url):
'url' : url + os.path.basename(mar_file)}
return data
+
+def replace_variables_in_string(string, **kwargs):
+ new_string = string
+ for key, val in kwargs.items():
+ new_string = new_string.replace('$(%s)'%key, val)
+
+ return new_string