public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
To: git-commits@fedoraproject.org
Subject: [rpms/clamav-unofficial-sigs] epel8: Fix: grep: warning: stray \ before "
Date: Sat, 04 Jul 2026 16:51:29 GMT	[thread overview]
Message-ID: <178318388927.1.12749560804043146470.rpms-clamav-unofficial-sigs-bea4874696ea@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/clamav-unofficial-sigs
            Branch : epel8
            Commit : bea4874696ea18747436523a84bdfb88d7e4d2a8
            Author : Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
            Date   : 2023-04-22T05:54:47+02:00
            Stats  : +19/-4 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/clamav-unofficial-sigs/c/bea4874696ea18747436523a84bdfb88d7e4d2a8?branch=epel8

            Log:
            Fix: grep: warning: stray \ before "

Remove clean section

---
diff --git a/clamav-unofficial-sigs-grep-backslash.patch b/clamav-unofficial-sigs-grep-backslash.patch
new file mode 100644
index 0000000..c2296da
--- /dev/null
+++ b/clamav-unofficial-sigs-grep-backslash.patch
@@ -0,0 +1,12 @@
+diff -urN clamav-unofficial-sigs-7.2.5/clamav-unofficial-sigs.sh clamav-unofficial-sigs-7.2.5.fixed/clamav-unofficial-sigs.sh
+--- clamav-unofficial-sigs-7.2.5/clamav-unofficial-sigs.sh	2021-03-20 03:49:21.000000000 +0100
++++ clamav-unofficial-sigs-7.2.5.fixed/clamav-unofficial-sigs.sh	2023-04-17 10:20:54.020368888 +0200
+@@ -1832,7 +1832,7 @@
+     fi
+ 
+     # Check there is an = for every set of "" optional whitespace \s* between = and "
+-    config_check_vars="$(echo "$clean_config" | $grep_bin -c '=[[:space:]]*\"' )"
++    config_check_vars="$(echo "$clean_config" | $grep_bin -c '=[[:space:]]*"' )"
+ 
+     if [ $(( ${#config_check} / 2 )) -ne "$config_check_vars" ] ; then
+       xshok_pretty_echo_and_log "ERROR: Your configuration has errors, every = requires a pair of \"\""

diff --git a/clamav-unofficial-sigs.spec b/clamav-unofficial-sigs.spec
index 6a1bceb..7c633e4 100644
--- a/clamav-unofficial-sigs.spec
+++ b/clamav-unofficial-sigs.spec
@@ -9,7 +9,7 @@
 %endif
 Name:           clamav-unofficial-sigs
 Version:        7.2.5
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Scripts to download unofficial clamav signatures 
 Group:          Applications/System
 License:        BSD
@@ -18,6 +18,7 @@ Source0:        https://github.com/extremeshok/%{name}/archive/%{version}/%{name
 Source1:        clamav-unofficial-sigs.cron
 Source2:        clamav-unofficial-sigs.logrotate
 Source3:        clamav-unofficial-sigs.man8
+Patch1:         clamav-unofficial-sigs-grep-backslash.patch
 BuildArch:      noarch
 BuildRequires:  bind-utils
 BuildRequires:  rsync
@@ -38,6 +39,7 @@ INetMsg and ScamNailer.
 
 %prep
 %setup -qn %{name}-%{version}
+%autopatch -p1
 sed -i -e '/user_configuration_complete/ s/^#//' config/user.conf
 sed -i -e '/ExecStart/ s^/usr/local/sbin^/usr/sbin^' systemd/clamav-unofficial-sigs.service
 
@@ -87,9 +89,6 @@ install -p -m0644 clamav-unofficial-sigs.cron %{buildroot}%{_sysconfdir}/cron.d/
 install -p -m0644 clamav-unofficial-sigs.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav-unofficial-sigs
 install -p -m0644 clamav-unofficial-sigs.man8 %{buildroot}%{_mandir}/man8/clamav-unofficial-sigs.8
 
-%clean
-rm -rf %{buildroot}
-
 %files
 %doc README.md 
 %license LICENSE
@@ -109,6 +108,10 @@ rm -rf %{buildroot}
 %{_mandir}/man*/%{name}*
 
 %changelog
+* Mon Apr 17 2023 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 7.2.5-6
+- Fix: grep: warning: stray \ before "
+- Remove clean section
+
 * Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.5-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
 

                 reply	other threads:[~2026-07-04 16:51 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=178318388927.1.12749560804043146470.rpms-clamav-unofficial-sigs-bea4874696ea@fedoraproject.org \
    --to=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