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

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

Subscribers

People subscribed via source and target branches