[PATCH] OSTree: Force to create new ostree commit during updates compose run

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

 



This patch (available in email attachment) is to create new ostree
commit when there is no content changes since last commit during
updates compose run. By passing force_new_commit as True, pungi
runs rpm-ostree command with option --force-nocache .

More details are in releng ticket - https://pagure.io/releng/issue/7585

Thanks,
Sinny

From f822e443f50844a0527f78f2d3dbc1b30dab8b3e Mon Sep 17 00:00:00 2001
From: Sinny Kumari <sinny@xxxxxxxxxx>
Date: Fri, 29 Jun 2018 20:28:21 +0530
Subject: [PATCH] Force to create new ostree commit during updates compose run

Create new ostree commit when there is no content
changes since last commit.

Related - https://pagure.io/releng/issue/7585

Signed-off-by: Sinny Kumari <sinny@xxxxxxxxxx>
---
 roles/bodhi2/backend/templates/pungi.rpm.conf.j2 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2 b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
index 631e07af7..39454d6f5 100644
--- a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
+++ b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
@@ -118,6 +118,7 @@ ostree = {
             [% if release.version_int >= 28 %]
                 "version": "!VERSION_FROM_VERSION_DATE_RESPIN",
             [% endif %]
+            "force_new_commit": True
             "treefile": "fedora-atomic-host-updates-[[ request.name ]].json",
             "config_url": "https://pagure.io/fedora-atomic.git";,
             "config_branch": "f[[ release.version ]]",
@@ -156,6 +157,7 @@ ostree = {
         [% else %]
                 "treefile": "fedora-ostree-workstation-updates-[[ request.name ]].json",
         [% endif %]
+            "force_new_commit": True
             "config_url": "https://pagure.io/workstation-ostree-config.git";,
             "config_branch": "f[[ release.version ]]",
             "repo": [
-- 
2.14.4

_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx/message/DCE3WHSX73YIDBTIB6C5NFGZBUFBVLVM/

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

  Powered by Linux