[PATCH 1/3] bodhi-pungi: get rid of < f29 logic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We are no longer building f28 so we can remove these if statements.
---
 .../bodhi2/backend/templates/pungi.rpm.conf.j2 | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2 b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
index 93638c4ef..477fe14da 100644
--- a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
+++ b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
@@ -168,11 +168,7 @@ ostree = {
         # Fedora Silverblue
         {
             "version": "!VERSION_FROM_VERSION_DATE_RESPIN",
-            [% if release.version_int >= 29 %]
-                "treefile": "fedora-silverblue.yaml",
-            [% else %]
-                "treefile": "fedora-atomic-workstation-updates-[[ request.name ]].json",
-            [% endif %]
+            "treefile": "fedora-silverblue.yaml",
             "config_url": "https://pagure.io/workstation-ostree-config.git";,
             "config_branch": "f[[ release.version ]]",
             "repo": [
@@ -189,14 +185,10 @@ ostree = {
                 [% endif %]
             ]
             "ostree_repo": "/mnt/koji/compose/ostree/repo",
-            # For f29+ we are changing the ref to silverblue. For f28/f27 let the files
-            # still specify the workstation ref.
-            [% if release.version_int >= 29 %]
-                [% if request.name == 'stable' %]
-                    "ostree_ref": "fedora/[[ release.version_int ]]/${basearch}/updates/silverblue",
-                [% else %]
-                    "ostree_ref": "fedora/[[ release.version_int ]]/${basearch}/testing/silverblue",
-                [% endif %]
+            [% if request.name == 'stable' %]
+                "ostree_ref": "fedora/[[ release.version_int ]]/${basearch}/updates/silverblue",
+            [% else %]
+                "ostree_ref": "fedora/[[ release.version_int ]]/${basearch}/testing/silverblue",
             [% endif %]
             "tag_ref": False,
             "arches": ["x86_64"],
-- 
2.20.1
_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux