From fabaa68de1e7be790f1828034abab2f2cc93db9c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:42:55 +0100 Subject: [PATCH] fix exiting with error in postun script [release 3.16.5-3mamba;Fri Jul 08 2016] --- hplip.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hplip.spec b/hplip.spec index ac166d5..d995263 100644 --- a/hplip.spec +++ b/hplip.spec @@ -3,7 +3,7 @@ %define cups_ver %(cups-config --api-version) Name: hplip Version: 3.16.5 -Release: 2mamba +Release: 3mamba Summary: A printer driver for HP inkjet devices Group: System/Spooling Vendor: openmamba @@ -131,9 +131,10 @@ fi # service hplip restart # service cups restart #fi -[ -e %{_sysconfdir}/sane.d/dll.conf ] || exit 1 -grep hpaio %{_sysconfdir}/sane.d/dll.conf >/dev/null || - echo "hpaio" >> %{_sysconfdir}/sane.d/dll.conf +if [ -e %{_sysconfdir}/sane.d/dll.conf ]; then + grep hpaio %{_sysconfdir}/sane.d/dll.conf >/dev/null || + echo "hpaio" >> %{_sysconfdir}/sane.d/dll.conf +fi /sbin/ldconfig : @@ -197,6 +198,9 @@ grep hpaio %{_sysconfdir}/sane.d/dll.conf >/dev/null || %{_datadir}/doc/* %changelog +* Fri Jul 08 2016 Silvan Calarco 3.16.5-3mamba +- fix exiting with error in postun script + * Mon Jul 04 2016 Silvan Calarco 3.16.5-2mamba - fix patch systray-hide-when-inactive