Merge lp:~mdeslaur/usb-creator/lp1497569 into lp:usb-creator

Proposed by Marc Deslauriers
Status: Needs review
Proposed branch: lp:~mdeslaur/usb-creator/lp1497569
Merge into: lp:usb-creator
Diff against target: 70 lines (+42/-1)
3 files modified
debian/changelog (+4/-1)
debian/usb-creator-common.postinst (+19/-0)
debian/usb-creator-common.prerm (+19/-0)
To merge this branch: bzr merge lp:~mdeslaur/usb-creator/lp1497569
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Pending
Review via email: mp+272464@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

473. By Marc Deslauriers

debian/usb-creator-common.postinst, debian/usb-creator-common.prerm:
stop usb-creator-helper on package upgrades and removals.
(LP: #1497569)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2015-09-19 01:27:48 +0000
3+++ debian/changelog 2015-09-25 19:06:44 +0000
4@@ -11,6 +11,9 @@
5 proper polkit integration for KVM use.
6 - CVE number pending
7 * usbcreator/backends/udisks/backend.py: fix --show-all (LP: #1497431)
8+ * debian/usb-creator-common.postinst, debian/usb-creator-common.prerm:
9+ stop usb-creator-helper on package upgrades and removals.
10+ (LP: #1497569)
11
12 [ Mathieu Trudel-Lapierre ]
13 * usbcreator/install.py: remove the directories known to normally contain
14@@ -18,7 +21,7 @@
15 squashfs from desktop is still under casper/ after copying server files
16 to a USB key. (LP: #1450597)
17
18- -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Fri, 18 Sep 2015 21:24:20 -0400
19+ -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Fri, 25 Sep 2015 15:01:19 -0400
20
21 usb-creator (0.2.67) vivid; urgency=medium
22
23
24=== added file 'debian/usb-creator-common.postinst'
25--- debian/usb-creator-common.postinst 1970-01-01 00:00:00 +0000
26+++ debian/usb-creator-common.postinst 2015-09-25 19:06:44 +0000
27@@ -0,0 +1,19 @@
28+#!/bin/sh
29+
30+set -e
31+
32+get_pid() {
33+ [ -n "$1" ] || return 0
34+ [ -S /var/run/dbus/system_bus_socket ] || return 0
35+
36+ dbus-send --system --dest=org.freedesktop.DBus --print-reply \
37+ /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID \
38+ string:$1 2>/dev/null | awk '/uint32/ {print $2}'
39+}
40+
41+if [ "$1" = "configure" ]; then
42+ # stop usb-creator-helper
43+ kill $(get_pid com.ubuntu.USBCreator) 2>/dev/null || true
44+fi
45+
46+#DEBHELPER#
47
48=== added file 'debian/usb-creator-common.prerm'
49--- debian/usb-creator-common.prerm 1970-01-01 00:00:00 +0000
50+++ debian/usb-creator-common.prerm 2015-09-25 19:06:44 +0000
51@@ -0,0 +1,19 @@
52+#!/bin/sh
53+
54+set -e
55+
56+get_pid() {
57+ [ -n "$1" ] || return 0
58+ [ -S /var/run/dbus/system_bus_socket ] || return 0
59+
60+ dbus-send --system --dest=org.freedesktop.DBus --print-reply \
61+ /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID \
62+ string:$1 2>/dev/null | awk '/uint32/ {print $2}'
63+}
64+
65+if [ "$1" = "remove" ]; then
66+ # stop usb-creator-helper
67+ kill $(get_pid com.ubuntu.USBCreator) 2>/dev/null || true
68+fi
69+
70+#DEBHELPER#

Subscribers

People subscribed via source and target branches