From 11a62e0319fcf4effe88a41ac7816d104f9ed3f7 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 7 Apr 2005 11:29:13 +0000 Subject: Add a trace --- perl-install/install_any.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 71a0dea5f..e1b2f4e2d 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -398,7 +398,7 @@ Do you have a supplementary installation media to configure?", join ", ", uniq(sort { (my $x) = $a =~ /CD(\d+)/; (my $y) = $b =~ /CD(\d+)/; - $x && $y ? $x <=> $y : $a cmp $b + $x && $y ? $x <=> $y : $a cmp $b; } map { $_->{descr} } values %{$o->{packages}{mediums}}))); $o->ask_from( '', $msg, @@ -913,6 +913,7 @@ sub killCardServices() { sub unlockCdrom() { my $cdrom = cat_("/proc/mounts") =~ m!(/dev/\S+)\s+(?:/mnt/cdrom|/tmp/image)! && $1 or return; eval { ioctl(detect_devices::tryOpen($cdrom), c::CDROM_LOCKDOOR(), 0) }; + $@ and log::l("unlock cdrom ($cdrom) failed: $@"); } sub openCdromTray { -- cgit v1.2.1