[releng/abderrahim/beta: 3/4] convert-to-tarballs.py: update the branch name in project.conf as well



commit 0f363d73ddb50d62b15c8b2ced9d7b21aca61dc5
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 d7089b0..35f3533 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -869,6 +869,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, 'project.conf')
+        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]