[bluez/f15] Enable bluetoothd on all upgrades from 4.87-6 and older, in order to fix up broken F15 installations

Lennart Poettering lennart at fedoraproject.org
Tue Jun 28 15:12:51 UTC 2011


commit 34f4085980b6e98e5e953ba60375d7cd90ca7aac
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Jun 28 17:12:34 2011 +0200

    Enable bluetoothd on all upgrades from 4.87-6 and older, in order to fix up broken F15 installations

 bluez.spec |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/bluez.spec b/bluez.spec
index 2ea0801..8a82d4d 100644
--- a/bluez.spec
+++ b/bluez.spec
@@ -1,7 +1,7 @@
 Summary: Bluetooth utilities
 Name: bluez
 Version: 4.87
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: GPLv2+
 Group: Applications/System
 Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
@@ -192,18 +192,8 @@ if [ $1 -ge 1 ] ; then
         /bin/systemctl try-restart bluetooth.service >/dev/null 2>&1 || :
 fi
 
-%triggerun -- bluez < 4.78
-if /sbin/chkconfig --level 3 bluetooth ; then
-        /bin/systemctl enable bluetooth.service >/dev/null 2>&1 || :
-fi
-
-%triggerun -- bluez < 4.87-3
-if /bin/systemctl is-enabled bluetooth.service >/dev/null 2>&1 ; then
-        # Starting with bluez 4.87-3 the D-Bus symlink is required to
-        # make bus activation work. Let's add it in, in case bluez was
-        # enabled already.
-        ln -s /lib/systemd/system/bluetooth.service /etc/systemd/system/dbus-org.bluez.service >/dev/null 2>&1 || :
-fi
+%triggerun -- bluez < 4.87-7
+/bin/systemctl --no-reload enable bluetooth.service >/dev/null 2>&1 || :
 
 %post compat
 /sbin/chkconfig --add dund
@@ -292,6 +282,9 @@ fi
 %{_mandir}/man1/pand.1.gz
 
 %changelog
+* Tue Jun 28 2011 Lennart Poettering <lpoetter at redhat.com> - 4.87-7
+- Enable bluetoothd on all upgrades from 4.87-6 and older, in order to fix up broken F15 installations
+
 * Mon Jun 20 2011 Lennart Poettering <lpoetter at redhat.com> - 4.87-6
 - Enable bluetoothd by default
 - Follow-up on https://bugzilla.redhat.com/show_bug.cgi?id=694519 also fixing upgrades


More information about the scm-commits mailing list