This patch avoids the crash I experience.

The crash occurs when:
a) --dist-upgrade-devel is given
and
b) the meta-release file cannot be downloaded.

Because of b), checkForDistUpgrade() fails. Despite this, the "2uparrow"
button is displayed, because of a). If it is pressed, the upgrade wizard
gets executed, it tries to fetch the release announcement file, a null
pointer gets derefenced and adept crashes.

I do not consider this patch a 100% solution, because an error message
about the _release announcement_ file is displayed while the problem is
one step earlier: at the downloading of the meta-release file.

Furthermore, even if all internet connection issues are resolved by the
user, re-pressing the "2uparrow" button will show an empty page 1 of the
upgrade wizard, with an inactive "next" button, so the user is presented
with a deadend.

The correct behavior, IMHO, would be to re-execute checkForDistUpgrade()
at this point. As it is now, the only (and non-obvious) option is to
close and restart adept.

** Attachment added: "Patch to avoid the crash when the meta-release file 
cannot be downloaded"
   http://launchpadlibrarian.net/13586610/no-crash.diff

-- 
adept_manager crashes when updating from Feisty to Gutsy
https://bugs.launchpad.net/bugs/153016
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to