public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/logwatch] rawhide: Update dnf5 regex for new details in the history list
@ 2026-11-30 11:11 Frank Crawford
  0 siblings, 0 replies; only message in thread
From: Frank Crawford @ 2026-11-30 11:11 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/logwatch
Branch : rawhide
Commit : 1a75d6f44b0bb6e2f268587bc96fe80a81bdd30c
Author : Frank Crawford <frank@crawford.emu.id.au>
Date   : 2026-11-30T22:11:09+11:00
Stats  : +18/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/logwatch/c/1a75d6f44b0bb6e2f268587bc96fe80a81bdd30c?branch=rawhide

Log:
Update dnf5 regex for new details in the history list

---
diff --git a/dnf5.patch b/dnf5.patch
new file mode 100644
index 0000000..fa68509
--- /dev/null
+++ b/dnf5.patch
@@ -0,0 +1,13 @@
+diff --git a/scripts/services/dnf5 b/scripts/services/dnf5
+index 9f06050..b3f2533 100644
+--- a/scripts/services/dnf5
++++ b/scripts/services/dnf5
+@@ -80,7 +80,7 @@ my @InfoMessages = ();
+ 
+ open(LISTLINE, '-|', $pathto_dnf5, 'history', 'list', '--reverse') || die "can't run $pathto_dnf5: $!";
+ while ( my $ListLine = <LISTLINE> ) {
+-   my ($ID, $Cmd, $Date, $Count) = ($ListLine =~ /([ \d]+) +(.*) +([\d]{4}-[\d]{2}-[\d]{2} [\d]{2}:[\d]{2}:[\d]{2}) +(\d+)/);
++   my ($ID, $Cmd, $Date, $Count) = ($ListLine =~ /([ \d]+) +(.*) +([\d]{4}-[\d]{2}-[\d]{2} [\d]{2}:[\d]{2}:[\d]{2}) +(?:[A-Z, ]+ +)?(\d+)/);
+    if ( $Debug >= 20 ) {
+       print STDERR "DEBUG($DebugCounter): $ListLine";
+       $DebugCounter++;

diff --git a/logwatch.spec b/logwatch.spec
index d839966..1c55895 100644
--- a/logwatch.spec
+++ b/logwatch.spec
@@ -2,13 +2,14 @@
 Summary: Analyzes and Reports on system logs
 Name: logwatch
 Version: 7.15
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: MIT
 URL: https://sourceforge.net/projects/logwatch/
 Source0: https://sourceforge.net/projects/logwatch/files/%{name}-%{version}/%{name}-%{version}.tar.gz
 # Updates already in upstream repo
 Patch1: systemd.patch
 Patch2: puppet.patch
+Patch3: dnf5.patch
 BuildRequires: perl-generators
 Requires: grep
 Requires: dnf5
@@ -133,6 +134,9 @@ echo "# Configuration overrides for specific logfiles/services may be placed her
 %{_unitdir}/logwatch.timer
 
 %changelog
+* Mon Nov 30 2026 Frank Crawford <frank@crawford.emu.id.au> - 7.15-3
+- Update dnf5 regex for new details in the history list (bz2585679)
+
 * Fri Nov 20 2026 Frank Crawford <frank@crawford.emu.id.au> - 7.15-2
 - Fix for puppet errors (bz2572332)
 - Match changed outputs in systemd

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 11:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 11:11 [rpms/logwatch] rawhide: Update dnf5 regex for new details in the history list Frank Crawford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox