public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Owen W. Taylor <otaylor@fishsoup.net>
To: git-commits@fedoraproject.org
Subject: [flatpaks/flatpak-runtime] f45: Parameterize stream and ID prefix in the modulemd output
Date: Fri, 11 Sep 2026 14:40:47 GMT	[thread overview]
Message-ID: <178913764713.1.14614333257081161862.flatpaks-flatpak-runtime-a27c6d290111@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : flatpaks/flatpak-runtime
Branch : f45
Commit : a27c6d290111c7cc72002b3222ad4da4c426257a
Author : Owen W. Taylor <otaylor@fishsoup.net>
Date   : 2020-03-20T21:51:58+01:00
Stats  : +21/-12 in 3 file(s)
URL    : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/a27c6d290111c7cc72002b3222ad4da4c426257a?branch=f45

Log:
Parameterize stream and ID prefix in the modulemd output

---
diff --git a/flatpak-runtime.in.yaml b/flatpak-runtime.in.yaml
index b51c621..18fdce3 100644
--- a/flatpak-runtime.in.yaml
+++ b/flatpak-runtime.in.yaml
@@ -12,9 +12,9 @@ data:
         module: [ MIT ]
     dependencies:
         buildrequires:
-            platform: f30
+            platform: @STREAM@
         requires:
-            platform: f30
+            platform: @STREAM@
     profiles:
         runtime:
             rpms: []
@@ -42,19 +42,19 @@ data:
         # This is used when building applications against this module so that
         # the resulting Flatpak will embed a reference to the correct runtime
         flatpak:
-            branch: f30
+            branch: @STREAM@
             runtimes:
                 # Map from profile name to pre-profile information - the
                 # profile named 'runtime' is the default.
                 runtime:
-                    id: org.fedoraproject.Platform
-                    sdk: org.fedoraproject.Sdk
+                    id: @ID_PREFIX@.Platform
+                    sdk: @ID_PREFIX@.Sdk
                 sdk:
-                    id: org.fedoraproject.Sdk
-                    sdk: org.fedoraproject.Platform
+                    id: @ID_PREFIX@.Sdk
+                    sdk: @ID_PREFIX@.Platform
                 runtime-base:
-                    id: org.fedoraproject.BasePlatform
-                    sdk: org.fedoraproject.BaseSdk
+                    id: @ID_PREFIX@.BasePlatform
+                    sdk: @ID_PREFIX@.BaseSdk
                 sdk-base:
-                    id: org.fedoraproject.BaseSdk
-                    sdk: org.fedoraproject.BasePlatform
+                    id: @ID_PREFIX@.BaseSdk
+                    sdk: @ID_PREFIX@.BasePlatform

diff --git a/tools/generate-modulemd.py b/tools/generate-modulemd.py
index 6d895aa..b1a45b7 100755
--- a/tools/generate-modulemd.py
+++ b/tools/generate-modulemd.py
@@ -1,9 +1,16 @@
 #!/usr/bin/python3
 import sys
 from yaml_utils import ordered_load, ordered_dump
+from util import ID_PREFIX, STREAM
 
 with open('flatpak-runtime.in.yaml') as f:
-    modulemd = ordered_load(f)
+    modulemd_string = f.read()
+
+modulemd_string = modulemd_string \
+    .replace('@ID_PREFIX@', ID_PREFIX) \
+    .replace('@STREAM@', STREAM)
+
+modulemd = ordered_load(modulemd_string)
 
 def set_profile(profile_name, list_file):
     with open(list_file) as f:

diff --git a/tools/util.py b/tools/util.py
index 223245f..3f18fa6 100644
--- a/tools/util.py
+++ b/tools/util.py
@@ -7,6 +7,8 @@ import sys
 import xml.etree.ElementTree as ET
 import xml.sax
 
+STREAM = 'f30'
+ID_PREFIX = 'org.fedoraproject'
 DATASET_ARG = '--dataset=f30'
 
 XDG_CACHE_HOME = os.environ.get("XDG_CACHE_HOME") or os.path.expanduser("~/.cache")

                 reply	other threads:[~2026-09-11 14:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178913764713.1.14614333257081161862.flatpaks-flatpak-runtime-a27c6d290111@fedoraproject.org \
    --to=otaylor@fishsoup.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox