Bug#409988: Acknowledgement (xserver-xorg: upgrade from xfree86 sarge failed with 'Can't call method "choices" on an undefined value')
This incorrectly indented, tasteless, dangerous hack:
$ diff -u /usr/share/perl5/Debconf/Question.pm /net/gollum/usr/
share/perl5/Debconf/Question.pm
--- /usr/share/perl5/Debconf/Question.pm 2006-12-20
11:31:31.000000000 -0800
+++ /net/gollum/usr/share/perl5/Debconf/Question.pm 2007-02-06
14:23:49.000000000 -0800
@@ -103,6 +103,9 @@
sub choices {
my $this=shift;
+ if (!defined($this->template)) {
+ return undef;
+ }
return $this->_expand_vars($this->template->choices);
}
$
Got my upgrade going again:
Setting up xserver-xorg (7.1.0-11) ...
xserver-xorg postinst warning: Migrating xserver-xfree86 debconf values
to xserver-xorg.
xserver-xorg postinst warning: failed to infer keyboard layout from
layout/lang
'--en_US'
$
I've no idea what the consequences will be, although they can scarcely
be worse than a stuck, half-complete upgrade.
-------------------------------------
Martin's Outlook, BlueArc Engineering
Reply to: