[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#620608: uninitialized value in string eq at postinst:1280



On Sat, 2011-05-28 at 17:23 +0200, Jörg Sommer wrote:
[...]
> > Oh well, please try installing this package:
> > 
> >     http://people.debian.org/~benh/linux-base_3.2a~test_all.deb
> 
> Can you reinstall this file?

I seem to have deleted it, but try this one:

http://people.debian.org/~benh/packages/linux-base_3.3~test1_all.deb

I'm attaching the changes so they're recorded on this bug and I won't
lose them again.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
Index: linux-base/debian/postinst
===================================================================
--- linux-base/debian/postinst	(revision 17575)
+++ linux-base/debian/postinst	(working copy)
@@ -1280,8 +1280,11 @@
     # Sort each device's IDs in reverse lexical order so that UUIDs are
     # preferred.
     for my $bdev (keys(%bdev_map)) {
-	if ($bdev_map{$bdev}->{type} eq 'LVM2_member') {
+	if (!defined($bdev_map{$bdev}->{type})) {
+	    print STDERR "no type found for $bdev\n";
 	    @{$bdev_map{$bdev}->{ids}} = ();
+	} elsif ($bdev_map{$bdev}->{type} eq 'LVM2_member') {
+	    @{$bdev_map{$bdev}->{ids}} = ();
 	} else {
 	    @{$bdev_map{$bdev}->{ids}} =
 		sort({$b cmp $a}
Index: linux-base/debian/changelog
===================================================================
--- linux-base/debian/changelog	(revision 17575)
+++ linux-base/debian/changelog	(working copy)
@@ -1,3 +1,9 @@
+linux-base (3.3~test1) UNRELEASED; urgency=low
+
+  * Report devices with missing information
+
+ -- Ben Hutchings <ben@decadent.org.uk>  Sun, 05 Jun 2011 20:24:27 +0100
+
 linux-base (3.3) UNRELEASED; urgency=low
 
   * debian/control: Fix VCS URLs (Closes: #620609)

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: