DistUpgradeApport.py should check to see if --tags is available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Quantal |
Fix Released
|
High
|
Brian Murray |
Bug Description
= Impact =
If apport is not upgraded before a package installation failure happens the package installation failure mechanism will fail as it will try to use a feature of apport that isn't available. This prevents us from receiving some package install failures that we should receive.
= Test Case=
On a precise sytem
1) run do-release-upgrade -d in a terminal
2) choose not to continue with the distribution upgrade when you see the Unity3D warning
3) cd to /tmp/update-
4) download test.py from bug 1070043
5) in the quantal dist-upgrader folder run "sudo python test.py"
6) observe the error message 'package_hook: error: no such option: --tags'
Now to use test the version from proposed:
1) run do-release-upgrade -p in a terminal
2) choose not to continue with the distribution upgrade when you see the Unity3D warning
3) cd to /tmp/update-
4) copy test.py from /tmp/update-
5) in the SOMETHINGELSE folder run "sudo python test.py"
6) there should not be an error in the terminal
7) confirm that there is a /var/crash/
During a failed upgrade, I saw these errors, indicating that the apport package hook hadn't been upgraded before attempting to call some new features:
dpkg: error processing libasyncns0 (--configure):
no package named `libasyncns0' is installed, cannot configure
Setting up libjson0:amd64 (0.10-1ubuntu1) ...
Usage: package_hook [options]
package_hook: error: no such option: --tags
description: | updated |
package_hook is provided by apport and the --tags option was added in quantal. ubuntu- release- upgrader should check to see if the --tags option exists before trying to use it.