[kernel] r17097 - dists/trunk/linux-base/debian
Ben Hutchings
benh at alioth.debian.org
Tue Mar 22 03:55:48 UTC 2011
Author: benh
Date: Tue Mar 22 03:55:46 2011
New Revision: 17097
Log:
Consider a boot-loader package as installed if it is only unpacked (Closes: #618958)
Modified:
dists/trunk/linux-base/debian/changelog
dists/trunk/linux-base/debian/postinst
Modified: dists/trunk/linux-base/debian/changelog
==============================================================================
--- dists/trunk/linux-base/debian/changelog Mon Mar 21 13:04:30 2011 (r17096)
+++ dists/trunk/linux-base/debian/changelog Tue Mar 22 03:55:46 2011 (r17097)
@@ -1,3 +1,10 @@
+linux-base (3.1) UNRELEASED; urgency=low
+
+ * Consider a boot-loader package as installed if it is only unpacked
+ (Closes: #618958)
+
+ -- Ben Hutchings <ben at decadent.org.uk> Tue, 22 Mar 2011 03:52:00 +0000
+
linux-base (3) unstable; urgency=low
* Update device names for the cciss/hpsa transition, similarly to the
Modified: dists/trunk/linux-base/debian/postinst
==============================================================================
--- dists/trunk/linux-base/debian/postinst Mon Mar 21 13:04:30 2011 (r17096)
+++ dists/trunk/linux-base/debian/postinst Tue Mar 22 03:55:46 2011 (r17097)
@@ -1179,14 +1179,16 @@
# Are any of the related packages wanted or installed?
my $wanted = 0;
+ my $unpacked = 0;
my $installed = 0;
my $packages = $config->{packages};
for (`dpkg-query 2>/dev/null --showformat '\${status}\\n' -W $packages`)
{
$wanted = 1 if /^install /;
$installed = 1 if / installed\n$/;
+ $unpacked = 1 if / (installed|unpacked)\n$/;
}
- if (!$wanted && !$installed) {
+ if (!$wanted && !$unpacked) {
next;
}
@@ -1217,6 +1219,7 @@
devices => \@matched_bdevs,
id_map_text => $id_map_text,
installed => $installed,
+ unpacked => $unpacked,
needs_update => $needs_update};
}
@@ -1411,7 +1414,9 @@
link($path, $old_path) or die "$!";
rename("$path.new", $path) or die "$!";
- # If the package is installed, run the post-update function
+ # If the package is installed, run the post-update function.
+ # If the package is only unpacked, assume that its own postinst
+ # will cover this.
if ($match->{installed} && $match->{config}->{post_update}) {
&{$match->{config}->{post_update}}();
}
@@ -1463,7 +1468,7 @@
my @matched_configs = grep({$_->{needs_update}} @found_configs);
my @auto_configs = grep({defined($_->{config}->{update})} @matched_configs);
my $found_boot_loader =
- grep({$_->{config}->{is_boot_loader} && $_->{installed}} @found_configs);
+ grep({$_->{config}->{is_boot_loader} && $_->{unpacked}} @found_configs);
my %update_map = ();
# We can skip all of this if we didn't find any configuration
More information about the Kernel-svn-changes
mailing list