public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Frank Crawford <frank@crawford.emu.id.au>
To: git-commits@fedoraproject.org
Subject: [rpms/logwatch] f45: Update dnf5 regex for new details in the history list
Date: Mon, 30 Nov 2026 11:31:10 GMT	[thread overview]
Message-ID: <179603827086.1.10951720894313320252.rpms-logwatch-0a423eed6b76@fedoraproject.org> (raw)

A new commit has been pushed.

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

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

                 reply	other threads:[~2026-11-30 11:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179603827086.1.10951720894313320252.rpms-logwatch-0a423eed6b76@fedoraproject.org \
    --to=frank@crawford.emu.id.au \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox