From 218b11f1b78c8871412fb83d48ae4d987ebe394e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 3 May 2023 15:32:26 +0300 Subject: [PATCH] Backport patches (cherry picked from commit 20a5d009614b0008a67a2b3a460224835aa77ea4 (fedora_master)) --- 1671.patch | 28 ++++++++++++++++++++++++++++ pungi.spec | 6 +++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 1671.patch diff --git a/1671.patch b/1671.patch new file mode 100644 index 00000000..6204f3e2 --- /dev/null +++ b/1671.patch @@ -0,0 +1,28 @@ +From b8b6b46ce7df2b80be110dd93cc795eb47a78549 Mon Sep 17 00:00:00 2001 +From: Aurélien Bompard +Date: May 03 2023 12:20:57 +0000 +Subject: Set the priority in the fedora-messaging notifier + + +According to [infra ticket #10899](https://pagure.io/fedora-infrastructure/issue/10899), +ostree messages should have prioriy 3. + +Signed-off-by: Aurélien Bompard + +--- + +diff --git a/pungi/scripts/fedmsg_notification.py b/pungi/scripts/fedmsg_notification.py +index db5dc01..e2c05c5 100644 +--- a/pungi/scripts/fedmsg_notification.py ++++ b/pungi/scripts/fedmsg_notification.py +@@ -14,6 +14,9 @@ def send(cmd, data): + topic = "compose.%s" % cmd.replace("-", ".").lower() + try: + msg = fedora_messaging.api.Message(topic="pungi.{}".format(topic), body=data) ++ if cmd == "ostree": ++ # https://pagure.io/fedora-infrastructure/issue/10899 ++ msg.priority = 3 + fedora_messaging.api.publish(msg) + except fedora_messaging.exceptions.PublishReturned as e: + print("Fedora Messaging broker rejected message %s: %s" % (msg.id, e)) + diff --git a/pungi.spec b/pungi.spec index fbb21772..a4dab54f 100644 --- a/pungi.spec +++ b/pungi.spec @@ -2,12 +2,13 @@ Name: pungi Version: 4.3.8 -Release: 1%{?dist}.alma +Release: 2%{?dist}.alma Summary: Distribution compose tool License: GPL-2.0-only URL: https://pagure.io/pungi Source0: %{name}-%{version}.tar.bz2 +Patch0: 1671.patch BuildRequires: make BuildRequires: python3-pytest @@ -164,6 +165,9 @@ rm %{buildroot}%{_bindir}/pungi * Tue Jul 25 2023 Stepan Oksanichenko - 4.3.7-8 - Option `excluded-packages` for script `pungi-gather-rpms` +* Wed May 03 2023 Lubomír Sedlář - 4.3.8-1 +- Set priority for Fedora messages + * Thu Apr 13 2023 Stepan Oksanichenko - 4.3.7-7 - gather-module can find modules through symlinks