Merge lp:~james-page/ubuntu/oneiric/swift/bug-825670 into lp:~openstack-ubuntu-packagers/ubuntu/oneiric/swift/ubuntu

Proposed by James Page
Status: Merged
Merged at revision: 28
Proposed branch: lp:~james-page/ubuntu/oneiric/swift/bug-825670
Merge into: lp:~openstack-ubuntu-packagers/ubuntu/oneiric/swift/ubuntu
Diff against target: 42 lines (+26/-1)
2 files modified
debian/changelog (+5/-1)
debian/python-swift.postrm (+21/-0)
To merge this branch: bzr merge lp:~james-page/ubuntu/oneiric/swift/bug-825670
Reviewer Review Type Date Requested Status
Thierry Carrez (community) Approve
Review via email: mp+71657@code.launchpad.net

Description of the change

Remove swift user with python-swift is purged.

To post a comment you must log in.
Revision history for this message
Thierry Carrez (ttx) wrote :

Looks good. Next time use "dch -t" to avoid modifying the last line of changelog !

review: Approve

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 2011-08-02 17:45:09 +0000
3+++ debian/changelog 2011-08-16 10:15:09 +0000
4@@ -18,7 +18,11 @@
5 * Added many missing manpages.
6 * Added default container-server.conf & object-server.conf files.
7
8- -- Soren Hansen <soren@ubuntu.com> Mon, 11 Jul 2011 17:49:35 +0200
9+ [ James Page ]
10+ * Added debian/python-swift.postrm: Remove swift user when purging
11+ package (LP: #825670).
12+
13+ -- James Page <james.page@ubuntu.com> Tue, 16 Aug 2011 10:33:00 +0100
14
15 swift (1.4.2-0ubuntu1) oneiric; urgency=low
16
17
18=== added file 'debian/python-swift.postrm'
19--- debian/python-swift.postrm 1970-01-01 00:00:00 +0000
20+++ debian/python-swift.postrm 2011-08-16 10:15:09 +0000
21@@ -0,0 +1,21 @@
22+#!/bin/sh
23+
24+set -e
25+
26+case "$1" in
27+ purge)
28+ # Remove swift user if possible
29+ userdel swift || true
30+ ;;
31+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
32+ ;;
33+ *)
34+ echo "postrm called with unknown argument \`$1'" >&2
35+ exit 1
36+ ;;
37+esac
38+
39+#DEBHELPER#
40+
41+exit 0
42+

Subscribers

People subscribed via source and target branches