[releng/abderrahim/beta: 2/2] convert-to-tarballs.py: update the branch name in project.conf as well
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng/abderrahim/beta: 2/2] convert-to-tarballs.py: update the branch name in project.conf as well
- Date: Thu, 5 Sep 2019 11:30:19 +0000 (UTC)
commit 1e10be3e1eaa7a8efebf8f32da385ca4a1aa72f7
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Thu Sep 5 12:29:52 2019 +0100
convert-to-tarballs.py: update the branch name in project.conf as well
tools/smoketesting/convert-to-tarballs.py | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index 1b80417..1034d93 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -871,6 +871,16 @@ def main(args):
with open(cifile, 'w') as f:
yaml.round_trip_dump(ci, f)
+ # update project.conf
+ projectconf = os.path.join(options.directory, '.gitlab-ci.yml')
+ with open(projectconf) as f:
+ conf = yaml.round_trip_load(f, preserve_quotes=True)
+
+ conf['variables']['branch'] = flatpak_branch
+
+ with open(projectconf, 'w') as f:
+ yaml.round_trip_dump(conf, f)
+
if convert.ignored_tarballs:
print("Could not find a download site for the following modules:")
for module_name in convert.ignored_tarballs:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]