rpms/BackupPC/devel BackupPC.spec,1.5,1.6
Johan Cwiklinski (trasher)
fedora-extras-commits at redhat.com
Mon Aug 11 16:12:09 UTC 2008
Author: trasher
Update of /cvs/extras/rpms/BackupPC/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4823
Modified Files:
BackupPC.spec
Log Message:
Avoiding "broken pipe" errors on update
Index: BackupPC.spec
===================================================================
RCS file: /cvs/extras/rpms/BackupPC/devel/BackupPC.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BackupPC.spec 5 Apr 2008 08:41:11 -0000 1.5
+++ BackupPC.spec 11 Aug 2008 16:11:39 -0000 1.6
@@ -6,7 +6,7 @@
Name: BackupPC
Version: 3.1.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: BackupPC - high-performance backup system
Group: Applications/System
@@ -174,6 +174,7 @@
%post
%if %{useselinux}
+(
# Install/update Selinux policy
semodule -i %{_datadir}/selinux/packages/%{name}/%{name}.pp
# files owned by RPM
@@ -182,6 +183,7 @@
restorecon -R %{_sysconfdir}/%{name}
restorecon -R %{_localstatedir}/lib/%{name}
restorecon -R %{_localstatedir}/log/%{name}
+) &>/dev/null
%endif
chkconfig --add backuppc || :
service httpd condrestart > /dev/null 2>&1 || :
@@ -192,8 +194,10 @@
service httpd condrestart > /dev/null 2>&1 || :
%if %{useselinux}
if [ "$1" -eq "0" ]; then
+ (
# Remove the SElinux policy.
semodule -r %{name} || :
+ )&>/dev/null
fi
%endif
@@ -222,6 +226,9 @@
%endif
%changelog
+* Mon Aug 11 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-3
+- using /dev/null with SELinux policy to avoid broken pipe errors (bug #432149)
+
* Sat Apr 05 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-2
- correcting nologin path
More information about the fedora-extras-commits
mailing list