Merge lp:~serge-hallyn/ubuntu/precise/bluez/bluez-respawn into lp:ubuntu/precise/bluez
Proposed by
Serge Hallyn
Status: | Merged |
---|---|
Merged at revision: | 85 |
Proposed branch: | lp:~serge-hallyn/ubuntu/precise/bluez/bluez-respawn |
Merge into: | lp:ubuntu/precise/bluez |
Diff against target: |
37 lines (+11/-1) 2 files modified
debian/bluez.bluetooth.upstart (+3/-1) debian/changelog (+8/-0) |
To merge this branch: | bzr merge lp:~serge-hallyn/ubuntu/precise/bluez/bluez-respawn |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Evan Broder (community) | Needs Fixing | ||
Ubuntu branches | Pending | ||
Review via email: mp+95667@code.launchpad.net |
Description of the change
This is a resubmission (with changelog entry added) of https:/
I believe the current handling of the BLUETOOTH_ENABLED=0 case is a bug (it should stop and exit 0, not exit 1). I'm hoping that is enough to allow it to be applied during precise cycle :)
To post a comment you must log in.
Steve Langasek provided some strong feedback that /etc/default files shouldn't be used just to enable/disable Upstart jobs. Instead, we should use Upstart override files. (The other two variables in /etc/default/ bluetooth are not currently being used for anything)
To smooth out the upgrade path, I suggested checking the value of BLUETOOTH_ENABLED and creating /etc/init/ bluetooth. override if necessary to disable the job.
I've pushed the partial completion of my work to <https:/ /code.launchpad .net/~broder/ ubuntu/ precise/ bluez/bluez- respawn/>, however it is incomplete. The prerm file needs to undo what the preinst did if it gets called with abort-upgrade. In order to do this, it needs to know if the preinst created the file in the first place.
So if the preinst creates/modifies the override file, it needs to also create a flag file, which the prerm can use to determine whether or not to rollback the override file. The postrm also should clean up this file. And all of this should be conditionalized on the upgrade version.
I'm planning to finish up the work here and upload it, but at present I'm getting kicked out of my coffee shop so I'll have to do it later. Since I'm committing to taking care of this, I'm going to go ahead and remove this and the original MP from the sponsorship queue by setting them to "Work in Progress"; I'll change them to "Merged" once I'm finished.