Merge lp:~bilalakhtar/ubuntu/maverick/ureadahead/fix-545596 into lp:ubuntu/maverick/ureadahead

Proposed by Bilal Akhtar
Status: Merged
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~bilalakhtar/ubuntu/maverick/ureadahead/fix-545596
Merge into: lp:ubuntu/maverick/ureadahead
Diff against target: 259 lines (+10/-200)
7 files modified
debian/changelog (+9/-0)
debian/control (+0/-6)
debian/rules (+1/-4)
debian/sreadahead.postinst (+0/-55)
debian/sreadahead.postrm (+0/-80)
debian/sreadahead.preinst (+0/-52)
debian/ureadahead.install (+0/-3)
To merge this branch: bzr merge lp:~bilalakhtar/ubuntu/maverick/ureadahead/fix-545596
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+30252@code.launchpad.net

Description of the change

This branch fixes bug #545596 .

To post a comment you must log in.
11. By Bilal Akhtar

* Passed --sourcedir argument to dh_install
  * Removed dh_gencontrol calls for package sreadahead.

12. By Bilal Akhtar

Renamed install file

13. By Bilal Akhtar

Added changelog entry for previous commit

Revision history for this message
Martin Pitt (pitti) wrote :

Merged into natty branch, thanks! (With a few corrections, see bug report).

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 2010-06-25 12:42:41 +0000
3+++ debian/changelog 2010-07-19 11:37:45 +0000
4@@ -1,3 +1,12 @@
5+ureadahead (0.100.0-6) maverick; urgency=low
6+
7+ * Removed sreadahead transitional package and its postinst, postrm,
8+ preinst and install files. (LP: #545596)
9+ * Passed --sourcedir argument to dh_install
10+ * Removed dh_gencontrol calls for package sreadahead.
11+
12+ -- Bilal Akhtar <bilalakhtar96@yahoo.com> Mon, 19 Jul 2010 17:04:28 +0530
13+
14 ureadahead (0.100.0-5) maverick; urgency=low
15
16 * src/pack.c: Amend mount point detection logic to stat the mount point
17
18=== modified file 'debian/control'
19--- debian/control 2010-02-17 12:57:00 +0000
20+++ debian/control 2010-07-19 11:37:45 +0000
21@@ -22,9 +22,3 @@
22 .
23 ureadahead requires a kernel patch included in the Ubuntu kernel.
24
25-Package: sreadahead
26-Architecture: any
27-Depends: ${shlibs:Depends}, ${misc:Depends}, ureadahead
28-Description: Transitional package for ureadahead
29- sreadahead has been replaced by ureadahead, this package ensures
30- that you are transitioned over and may be safely removed.
31
32=== modified file 'debian/rules'
33--- debian/rules 2009-12-01 02:25:50 +0000
34+++ debian/rules 2010-07-19 11:37:45 +0000
35@@ -21,13 +21,10 @@
36
37
38 override_dh_install:
39- dh_install
40+ dh_install --sourcedir=debian/ureadahead
41 install debian/ureadahead.apport \
42 debian/ureadahead/usr/share/apport/package-hooks/ureadahead.py
43
44
45 version := $(shell sed -e '1{;s|^ureadahead (\(.*\))\ .*|\1|;q;}' debian/changelog)
46
47-override_dh_gencontrol:
48- dh_gencontrol -psreadahead -u-v1:$(version)
49- dh_gencontrol -Nsreadahead
50
51=== removed file 'debian/sreadahead.postinst'
52--- debian/sreadahead.postinst 2009-11-09 18:38:51 +0000
53+++ debian/sreadahead.postinst 1970-01-01 00:00:00 +0000
54@@ -1,55 +0,0 @@
55-#!/bin/sh -e
56-# This script can be called in the following ways:
57-#
58-# After the package was installed:
59-# <postinst> configure <old-version>
60-#
61-# After a trigger is activated:
62-# <postinst> triggered <trigger-name>...
63-#
64-#
65-# If prerm fails during upgrade or fails on failed upgrade:
66-# <old-postinst> abort-upgrade <new-version>
67-#
68-# If prerm fails during deconfiguration of a package:
69-# <postinst> abort-deconfigure in-favour <new-package> <version>
70-# removing <old-package> <version>
71-#
72-# If prerm fails during replacement due to conflict:
73-# <postinst> abort-remove in-favour <new-package> <version>
74-
75-
76-# Remove a no-longer used conffile
77-rm_conffile()
78-{
79- CONFFILE="$1"
80-
81- if [ -e "$CONFFILE".dpkg-obsolete ]; then
82- echo "Removing obsolete conffile $CONFFILE"
83- rm -f "$CONFFILE".dpkg-obsolete
84- fi
85-}
86-
87-
88-case "$1" in
89- configure)
90- rm_conffile /etc/init/sreadahead.conf
91- rm_conffile /etc/cron.monthly/sreadahead
92-
93- if [ -f /var/lib/sreadahead/pack ]; then
94- rm -f /var/lib/sreadahead/pack || true
95- rmdir /var/lib/sreadahead || true
96- fi
97- ;;
98-
99- abort-upgrade|abort-deconfigure|abort-remove)
100- ;;
101-
102- *)
103- echo "$0 called with unknown argument \`$1'" 1>&2
104- exit 1
105- ;;
106-esac
107-
108-#DEBHELPER#
109-exit 0
110
111=== removed file 'debian/sreadahead.postrm'
112--- debian/sreadahead.postrm 2009-11-09 18:38:51 +0000
113+++ debian/sreadahead.postrm 1970-01-01 00:00:00 +0000
114@@ -1,80 +0,0 @@
115-#!/bin/sh -e
116-# This script can be called in the following ways:
117-#
118-# After the package was removed:
119-# <postrm> remove
120-#
121-# After the package was purged:
122-# <postrm> purge
123-#
124-# After the package was upgraded:
125-# <old-postrm> upgrade <new-version>
126-# if that fails:
127-# <new-postrm> failed-upgrade <old-version>
128-#
129-#
130-# After all of the packages files have been replaced:
131-# <postrm> disappear <overwriting-package> <version>
132-#
133-#
134-# If preinst fails during install:
135-# <new-postrm> abort-install
136-#
137-# If preinst fails during upgrade of removed package:
138-# <new-postrm> abort-install <old-version>
139-#
140-# If preinst fails during upgrade:
141-# <new-postrm> abort-upgrade <old-version>
142-
143-
144-# Undo removal of a no-longer used conffile
145-undo_rm_conffile()
146-{
147- CONFFILE="$1"
148-
149- if [ ! -e "$CONFFILE" ]; then
150- if [ -e "$CONFFILE".dpkg-bak ]; then
151- echo "Restoring modified conffile $CONFFILE"
152- mv -f "$CONFFILE".dpkg-bak "$CONFFILE"
153- elif [ -e "$CONFFILE".dpkg-obsolete ]; then
154- mv -f "$CONFFILE".dpkg-obsolete "$CONFFILE"
155- fi
156- fi
157-}
158-
159-# Finish removal of a no-longer used conffile
160-finish_rm_conffile()
161-{
162- CONFFILE="$1"
163-
164- if [ -e "$CONFFILE".dpkg-bak ]; then
165- rm -f "$CONFFILE".dpkg-bak
166- fi
167-}
168-
169-
170-case "$1" in
171- remove)
172- ;;
173-
174- purge)
175- finish_rm_conffile /etc/init/sreadahead.conf
176- finish_rm_conffile /etc/cron.monthly/sreadahead
177- ;;
178-
179- upgrade|failed-upgrade|disappear)
180- ;;
181-
182- abort-install|abort-upgrade)
183- undo_rm_conffile /etc/init/sreadahead.conf
184- undo_rm_conffile /etc/cron.monthly/sreadahead
185- ;;
186-
187- *)
188- echo "$0 called with unknown argument \`$1'" 1>&2
189- exit 1
190- ;;
191-esac
192-
193-#DEBHELPER#
194-exit 0
195
196=== removed file 'debian/sreadahead.preinst'
197--- debian/sreadahead.preinst 2009-11-09 18:38:51 +0000
198+++ debian/sreadahead.preinst 1970-01-01 00:00:00 +0000
199@@ -1,52 +0,0 @@
200-#!/bin/sh -e
201-# This script can be called in the following ways:
202-#
203-# Before the package is installed:
204-# <new-preinst> install
205-#
206-# Before removed package is upgraded:
207-# <new-preinst> install <old-version>
208-#
209-# Before the package is upgraded:
210-# <new-preinst> upgrade <old-version>
211-#
212-#
213-# If postrm fails during upgrade or fails on failed upgrade:
214-# <old-preinst> abort-upgrade <new-version>
215-
216-
217-# Prepare to remove a no-longer used conffile
218-prep_rm_conffile()
219-{
220- CONFFILE="$1"
221-
222- if [ -e "$CONFFILE" ]; then
223- md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
224- old_md5sum="`sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' $CONFFILE '{s/ obsolete$//;s/.* //;p}}\" /var/lib/dpkg/status`"
225- if [ "$md5sum" != "$old_md5sum" ]; then
226- echo "Obsolete conffile $CONFFILE has been modified by you, renaming to .dpkg-bak"
227- mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
228- else
229- mv -f "$CONFFILE" "$CONFFILE".dpkg-obsolete
230- fi
231- fi
232-}
233-
234-
235-case "$1" in
236- install|upgrade)
237- prep_rm_conffile /etc/init/sreadahead.conf
238- prep_rm_conffile /etc/cron.monthly/sreadahead
239- ;;
240-
241- abort-upgrade)
242- ;;
243-
244- *)
245- echo "$0 called with unknown argument \`$1'" 1>&2
246- exit 1
247- ;;
248-esac
249-
250-#DEBHELPER#
251-exit 0
252
253=== removed file 'debian/ureadahead.install'
254--- debian/ureadahead.install 2009-12-01 02:25:50 +0000
255+++ debian/ureadahead.install 1970-01-01 00:00:00 +0000
256@@ -1,3 +0,0 @@
257-etc/init
258-sbin/ureadahead
259-usr/share/man/man8/ureadahead.8

Subscribers

People subscribed via source and target branches

to all changes: