fix 732426

This commit is contained in:
Lennart Poettering 2011-08-22 21:30:14 +02:00
parent 0115babb9e
commit 637471407a

View File

@ -10,7 +10,7 @@ Summary: D-BUS message bus
Name: dbus Name: dbus
Epoch: 1 Epoch: 1
Version: 1.4.10 Version: 1.4.10
Release: 2%{?dist} Release: 3%{?dist}
URL: http://www.freedesktop.org/software/dbus/ URL: http://www.freedesktop.org/software/dbus/
#VCS: git:git://git.freedesktop.org/git/dbus/dbus #VCS: git:git://git.freedesktop.org/git/dbus/dbus
Source0: http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz Source0: http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
@ -150,30 +150,19 @@ rm -rf %{buildroot}
%post libs -p /sbin/ldconfig %post libs -p /sbin/ldconfig
%post
if [ $1 -eq 1 ] ; then
/bin/systemctl enable dbus.service >/dev/null 2>&1 || :
fi
%preun %preun
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
/bin/systemctl --no-reload dbus.service > /dev/null 2>&1 || : /bin/systemctl stop dbus.service dbus.socket > /dev/null 2>&1 || :
/bin/systemctl stop dbus.service > /dev/null 2>&1 || :
fi fi
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%postun %postun
/bin/systemctl daemon-reload >/dev/null 2>&1 || : /bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
/bin/systemctl try-restart dbus.service >/dev/null 2>&1 || :
fi
%triggerun -- dbus < 1.4.10-2 %triggerun -- dbus < 1.4.10-2
%{_bindir}/systemd-sysv-convert --save messagebus >/dev/null 2>&1 ||: %{_bindir}/systemd-sysv-convert --save messagebus >/dev/null 2>&1 ||:
/bin/systemctl enable dbus.service >/dev/null 2>&1
/sbin/chkconfig --del messagebus >/dev/null 2>&1 || : /sbin/chkconfig --del messagebus >/dev/null 2>&1 || :
/bin/systemctl try-restart dbus.service >/dev/null 2>&1 || :
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -237,6 +226,10 @@ fi
%{_includedir}/* %{_includedir}/*
%changelog %changelog
* Mon Aug 22 2011 Lennart Poettering <lpoetter@redhat.com> - 1:1.4.10-3
- Don't restart D-Bus on upgrades, dont' enable D-Bus, since it is statically enabled.
- https://bugzilla.redhat.com/show_bug.cgi?id=732426
* Wed Aug 03 2011 David Zeuthen <davidz@redhat.com> - 1:1.4.10-2 * Wed Aug 03 2011 David Zeuthen <davidz@redhat.com> - 1:1.4.10-2
- Drop SysV support, #697523 (from Jóhann B. Guðmundsson <johannbg@gmail.com>) - Drop SysV support, #697523 (from Jóhann B. Guðmundsson <johannbg@gmail.com>)