[pcsc-lite] Ignore errors from 'systemctl enable'

Kalev Lember kalev at fedoraproject.org
Sat Sep 3 21:52:50 UTC 2011


commit fd30a60e018f15d44155bb38ed7472de81f82e32
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Sun Sep 4 00:50:31 2011 +0300

    Ignore errors from 'systemctl enable'

 pcsc-lite.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/pcsc-lite.spec b/pcsc-lite.spec
index bdd40f0..269200f 100644
--- a/pcsc-lite.spec
+++ b/pcsc-lite.spec
@@ -2,7 +2,7 @@
 
 Name:           pcsc-lite
 Version:        1.7.4
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        PC/SC Lite smart card framework and applications
 
 Group:          System Environment/Daemons
@@ -104,7 +104,7 @@ rm $RPM_BUILD_ROOT%{_docdir}/pcsc-lite/README.DAEMON
 %post
 if [ $1 -eq 1 ] ; then
     # Initial installation
-    /bin/systemctl enable pcscd.socket >/dev/null 2>&1
+    /bin/systemctl enable pcscd.socket >/dev/null 2>&1 || :
 fi
 
 %preun
@@ -128,7 +128,7 @@ fi
 %{_bindir}/systemd-sysv-convert --save pcscd >/dev/null 2>&1 ||:
 
 # Enable pcscd socket activation
-/bin/systemctl enable pcscd.socket >/dev/null 2>&1
+/bin/systemctl enable pcscd.socket >/dev/null 2>&1 || :
 
 # Run these because the SysV package being removed won't do them
 /sbin/chkconfig --del pcscd >/dev/null 2>&1 || :
@@ -170,6 +170,9 @@ fi
 
 
 %changelog
+* Sun Sep 04 2011 Kalev Lember <kalevlember at gmail.com> - 1.7.4-4
+- Ignore errors from 'systemctl enable' (#734852)
+
 * Sat Aug 20 2011 Kalev Lember <kalevlember at gmail.com> - 1.7.4-3
 - Use /var/run/pcscd for ipc directory (#722449)
 


More information about the scm-commits mailing list