Merge lp:~jtaylor/ubuntu/natty/foolscap/foolscap-fix-782414 into lp:ubuntu/natty/foolscap

Proposed by Julian Taylor
Status: Merged
Merged at revision: 8
Proposed branch: lp:~jtaylor/ubuntu/natty/foolscap/foolscap-fix-782414
Merge into: lp:ubuntu/natty/foolscap
Diff against target: 59 lines (+30/-1)
4 files modified
debian/changelog (+8/-0)
debian/control (+1/-1)
debian/preinst (+20/-0)
debian/pydist-overrides (+1/-0)
To merge this branch: bzr merge lp:~jtaylor/ubuntu/natty/foolscap/foolscap-fix-782414
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Micah Gersten Pending
Review via email: mp+61682@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for contributing to Ubuntu development.

I commented on the bug regarding the install failure, but I'll comment here about the tweaks to the proposal. These are mostly cosmetic things to keep in mind for the future, I made these changes locally. You needn't bother reproposing unless something else is required.

Version should be 0.6.1-1ubuntu0.1 since it's an SRU
You should run update-maintainer (This might be a special case since you're the Debian uploader, but something to keep in mind in general for Ubuntu)

9. By Julian Taylor

remove old egg symlinks in a preinst to ensure a correct upgrade

10. By Julian Taylor

pydist-override twisted -> python-twisted-core

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

This looks fine to me now, thanks!

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-03-01 23:42:14 +0000
3+++ debian/changelog 2011-05-26 13:23:25 +0000
4@@ -1,3 +1,11 @@
5+foolscap (0.6.1-1ubuntu0.1) natty-proposed; urgency=low
6+
7+ * add build dependency python-setup to create proper egg (LP: #782414)
8+ - remove old egg symlinks in a preinst to ensure a correct upgrade
9+ - pydist-override twisted -> python-twisted-core
10+
11+ -- Julian Taylor <jtaylor.debian@googlemail.com> Thu, 19 May 2011 10:41:24 +0200
12+
13 foolscap (0.6.1-1) unstable; urgency=low
14
15 [ Julian Taylor ]
16
17=== modified file 'debian/control'
18--- debian/control 2011-03-01 23:42:14 +0000
19+++ debian/control 2011-05-26 13:23:25 +0000
20@@ -3,7 +3,7 @@
21 Priority: optional
22 Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
23 Uploaders: Stephan Peijnik <debian@sp.or.at>, Julian Taylor <jtaylor.debian@googlemail.com>
24-Build-Depends-Indep: python-all (>= 2.6.6-3), python-openssl, python-twisted-core, python-twisted-web, debhelper (>= 7.0.50~)
25+Build-Depends-Indep: python-all (>= 2.6.6-3), python-openssl, python-twisted-core, python-twisted-web, debhelper (>= 7.0.50~), python-setuptools
26 X-Python-Version: >= 2.4
27 Standards-Version: 3.9.1
28 Homepage: http://foolscap.lothar.com/
29
30=== added file 'debian/preinst'
31--- debian/preinst 1970-01-01 00:00:00 +0000
32+++ debian/preinst 2011-05-26 13:23:25 +0000
33@@ -0,0 +1,20 @@
34+#!/bin/sh
35+set -e
36+
37+# there are no guarantees on unpack order, so when the pyshared egg
38+# folder is extracted before the symlinks in /usr/lib/.../dist-packages
39+# the upgrade will fail due to policy 6.6.4 when there are more than
40+# one supported python version as it will try to overwrite a directory
41+# after following the symlink
42+# => remove egg symlink installed by 0.6.1-1 before unpacking
43+if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt "0.6.1-4"; then
44+ for f in /usr/lib/python2.*; do
45+ # if egg is a link and not pointing to a directory
46+ if [ -L "$f/dist-packages/foolscap-0.6.1.egg-info" ] &&
47+ [ -f "$f/dist-packages/foolscap-0.6.1.egg-info" ]; then
48+ rm -f "$f/dist-packages/foolscap-0.6.1.egg-info";
49+ fi
50+ done
51+fi
52+
53+#DEBHELPER#
54
55=== added file 'debian/pydist-overrides'
56--- debian/pydist-overrides 1970-01-01 00:00:00 +0000
57+++ debian/pydist-overrides 2011-05-26 13:23:25 +0000
58@@ -0,0 +1,1 @@
59+twisted python-twisted-core

Subscribers

People subscribed via source and target branches

to all changes: