With help from Jakub Wilk and Julien Cristau, we've figured out the
problem and come up with a solution.
quickly, prior to 11.09-0ubuntu1 used python-central. After that it
switched to dh_python2. In addition, the Python files under dist-
packages/quickly were split into python-quickly-common and python-
quickly-core packages. (Aside: the changelog file describes why this
was done, but not why. It might be good to know since this is the crux
of the problem!)
dist-packages/quickly/__init__.py is provided by the -common package,
and the -core package depends on it. However, the old -core's prerm
actually *deletes* this __init__.py file. So here's what happens on an
upgrade:
* -common gets upgraded before -core so if you just upgrade -common, the
__init__.py is retained just fine
* old -core's prerm removes the __init__.py
* new -core does not contain the __init__.py, and since -common is already
upgraded, you lose the __init__.py file!
My first thought was to add a postinst to -core to add the __init__.py
symlink back if it was missing, but Jakub came up with a better solution
not requiring maintainer scripts. First, add a Conflicts on python-
quickly-common for python-quickly-core (<< 11.09). Second, add a
versioned dependency on python-quickly-common (= ${source:Version}) for
python-quickly-core.
Now, if you install the resulting packages with dpkg, it will break, but
apt can actually resolve a solution that DTRT. By adding the conflict,
we're ensuring that on an upgrade, -core is removed before anything
else. This will delete the __init__.py file, but now it's okay because
that will happen before new -common is installed, providing the
__init__.py symlink.
I've verified that this works in a chroot. I'll upload a fix for
release team approval.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/850744
Title:
quickly crashed with ImportError in __main__: No module named quickly
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/quickly/+bug/850744/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs