Backport patches
This commit is contained in:
parent
c6f65036fc
commit
20a5d00961
28
1671.patch
Normal file
28
1671.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From b8b6b46ce7df2b80be110dd93cc795eb47a78549 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aurélien Bompard <aurelien@bompard.org>
|
||||||
|
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 <aurelien@bompard.org>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
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))
|
||||||
|
|
@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
Name: pungi
|
Name: pungi
|
||||||
Version: 4.3.8
|
Version: 4.3.8
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Distribution compose tool
|
Summary: Distribution compose tool
|
||||||
|
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
URL: https://pagure.io/pungi
|
URL: https://pagure.io/pungi
|
||||||
Source0: https://pagure.io/releases/%{name}/%{name}-%{version}.tar.bz2
|
Source0: https://pagure.io/releases/%{name}/%{name}-%{version}.tar.bz2
|
||||||
|
Patch0: https://pagure.io/pungi/pull-request/1671.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
@ -138,6 +139,9 @@ rm %{buildroot}%{_bindir}/pungi
|
|||||||
%{_bindir}/%{name}-wait-for-signed-ostree-handler
|
%{_bindir}/%{name}-wait-for-signed-ostree-handler
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 03 2023 Lubomír Sedlář <lsedlar@redhat.com> - 4.3.8-1
|
||||||
|
- Set priority for Fedora messages
|
||||||
|
|
||||||
* Thu Mar 30 2023 Haibo Lin <hlin@redhat.com> - 4.3.8-1
|
* Thu Mar 30 2023 Haibo Lin <hlin@redhat.com> - 4.3.8-1
|
||||||
- createiso: Update possibly changed file on DVD (lsedlar)
|
- createiso: Update possibly changed file on DVD (lsedlar)
|
||||||
- pkgset: Stop reuse if configuration changed (lsedlar)
|
- pkgset: Stop reuse if configuration changed (lsedlar)
|
||||||
|
Loading…
Reference in New Issue
Block a user