Merge lp:~stefanor/ubuntu/natty/pywebkitgtk/pywebkitgtk-688732 into lp:ubuntu/natty/pywebkitgtk

Proposed by Stefano Rivera
Status: Merged
Merged at revision: 13
Proposed branch: lp:~stefanor/ubuntu/natty/pywebkitgtk/pywebkitgtk-688732
Merge into: lp:ubuntu/natty/pywebkitgtk
Diff against target: 43 lines (+31/-0)
2 files modified
debian/changelog (+7/-0)
debian/python-webkit.postinst (+24/-0)
To merge this branch: bzr merge lp:~stefanor/ubuntu/natty/pywebkitgtk/pywebkitgtk-688732
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Approve
Ubuntu branches Pending
Review via email: mp+46917@code.launchpad.net

Description of the change

This blocks on LP: #705426

To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

Thanks for adding the cleanup. After the transition, does the bogus __init__.pyc still get installed? If so, should your patch also prevent that from happening? (I can't do a local build to check that, for reasons explained in the bug comments.)

Revision history for this message
Stefano Rivera (stefanor) wrote :

Barry: the problem was with an intermediate version of pywebkitgtk (1.1.8-1), that installed the .py file. I'm guessing python-support's byte-compilation then created the .pyc on install. As .pyc wasn't part of the package, it wasn't removed when the next upload didn't have this .py file any more, as this isn't a python-support managed directory.

Presumably this bug is due to python-support not supporting 2.7 yet when 1.1.8-1 was built

Revision history for this message
Barry Warsaw (barry) wrote :

Yet another reason to migrate to dh_python2 I guess :). Anyway, thanks for the explanation, and your change looks good to me. I can approve the review, but I do not have permission to approve the merge proposal.

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-01-10 14:48:38 +0000
3+++ debian/changelog 2011-01-20 14:37:49 +0000
4@@ -1,3 +1,10 @@
5+pywebkitgtk (1.1.8-1ubuntu2) natty; urgency=low
6+
7+ * Cleanup after 1.1.8-1 which may have left a .pyc in
8+ /usr/lib/python2.7/dist-packages/webkit/ (LP: #688732)
9+
10+ -- Stefano Rivera <stefanor@ubuntu.com> Thu, 20 Jan 2011 14:55:17 +0200
11+
12 pywebkitgtk (1.1.8-1ubuntu1) natty; urgency=low
13
14 * debian/control:
15
16=== added file 'debian/python-webkit.postinst'
17--- debian/python-webkit.postinst 1970-01-01 00:00:00 +0000
18+++ debian/python-webkit.postinst 2011-01-20 14:37:49 +0000
19@@ -0,0 +1,24 @@
20+#!/bin/sh
21+
22+set -e
23+
24+case "$1" in
25+ configure)
26+ if [ -d /usr/lib/python2.7/dist-packages/webkit ]; then
27+ # 1.1.8-1 accidentally contained a .py file here
28+ # LP: #688732
29+ rm -f /usr/lib/python2.7/dist-packages/webkit/__init__.pyc
30+ rmdir /usr/lib/python2.7/dist-packages/webkit || true
31+ fi
32+ ;;
33+
34+ abort-upgrade|abort-remove|abort-deconfigure)
35+ ;;
36+
37+ *)
38+ echo "postinst called with unknown argument \`$1'" >&2
39+ exit 1
40+ ;;
41+esac
42+
43+#DEBHELPER#

Subscribers

People subscribed via source and target branches