#29 Let newer .cld files take precedence over the shipped .cvd files by removing them
Closed 7 days ago by sergiomb. Opened 2 months ago by sergiomb.
rpms/ sergiomb/clamav epel8  into  epel8

file modified
+13
@@ -399,6 +399,17 @@ 

  %systemd_postun_with_restart clamav-clamonacc.service

  

  

+ %post data

+ # nullglob. If set, Bash allows filename patterns which match no files to expand to a null string, rather than themselves

+ shopt -s nullglob

+ # Let newer .cld files take precedence over the shipped .cvd files

+ for f in %{homedir}/*.cld

+ do

+     cvd=${f/.cld/.cvd}

+     [ -f $f -a $f -nt $cvd ] && rm -f $cvd || :

+ done

+ 

+ 

  %pre filesystem

  getent group %{updateuser} >/dev/null || groupadd -r %{updateuser}

  getent passwd %{updateuser} >/dev/null || \
@@ -590,6 +601,8 @@ 

  %changelog

  * Mon Mar 18 2024 Sérgio Basto <sergio@serjux.com> - 0.103.11-2

  - (#1679375) fixes syntax error in /etc/logrotate.d/clamd.exim

+ - Let newer .cld files take precedence over the shipped .cvd files by removing

+   them (with the fix to script (#2253914))

  

  * Sun Oct 29 2023 Orion Poplawski <orion@nwra.com> - 0.103.11-1

  - Update to 0.103.11

(with the fix to script (#2253914))

Should we bring this to epel-8 and epel-7 ?

I haven't yet build 0.103.11-2 with (#1679375) fixes syntax error in /etc/logrotate.d/clamd.exim , should I add this commit to 0.103.11-2 ? and also update cvd files ?

Pull-Request has been closed by sergiomb

7 days ago
Metadata