From ddab1c56bd5c37626e13fc32be16cbf00a3f1a63 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 13 Oct 2025 19:29:19 +0200 Subject: [PATCH] fix posttrans script Resolves: RHEL-93931 --- cups-filters.spec | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/cups-filters.spec b/cups-filters.spec index 7625334..6f7af39 100644 --- a/cups-filters.spec +++ b/cups-filters.spec @@ -11,7 +11,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.28.7 -Release: 23%{?dist} +Release: 24%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -395,6 +395,16 @@ fi %ldconfig_scriptlets libs %posttrans +if [ $1 -ge 1 ] +then + /usr/lib/systemd/systemd-update-helper mark-reload-system-units foomaticrip-upgrade.service || : +fi + +if [ $1 -ge 1 ] +then + systemctl start foomaticrip-upgrade.service || : +fi + if ls -lah /var/cache/cups/cups-browsed* &> /dev/null then BROWSED_ACTIVE="0" @@ -425,11 +435,6 @@ then systemctl start cups fi fi -%systemd_posttrans_with_reload foomaticrip-upgrade.service -if [ $1 -gt 1 ] -then - systemctl start foomaticrip-upgrade.service || : -fi %files @@ -566,6 +571,9 @@ fi %endif %changelog +* Mon Oct 13 2025 Zdenek Dohnal - 1.28.7-24 +- fix posttrans script + * Thu Oct 09 2025 Zdenek Dohnal - 1.28.7-23 - RHEL-93931 RFE: Add Allow list for FoomaticRIPCommandLine PPD values