linux-image.postinst: Use lstat() to check symlink existence (Closes: #738707)
svn path=/dists/trunk/linux/; revision=21046
This commit is contained in:
parent
e6ba2dd0e8
commit
373d086904
|
@ -13,6 +13,8 @@ linux (3.13.2-1~exp1) UNRELEASED; urgency=low
|
||||||
* [x86] snd-pcsp: Disable autoload (Closes: #697709)
|
* [x86] snd-pcsp: Disable autoload (Closes: #697709)
|
||||||
* DFSG: Remove the af9005 initialisation script and vs6624 driver again
|
* DFSG: Remove the af9005 initialisation script and vs6624 driver again
|
||||||
(they were renamed in 3.7)
|
(they were renamed in 3.7)
|
||||||
|
* linux-image.postinst: Use lstat() to check symlink existence
|
||||||
|
(Closes: #738707)
|
||||||
|
|
||||||
-- Ben Hutchings <ben@decadent.org.uk> Thu, 23 Jan 2014 15:05:08 +0000
|
-- Ben Hutchings <ben@decadent.org.uk> Thu, 23 Jan 2014 15:05:08 +0000
|
||||||
|
|
||||||
|
|
|
@ -537,13 +537,17 @@ if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m/<unknown>/o) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (! -e "$kimage") {
|
lstat($kimage);
|
||||||
|
if (! -e _) {
|
||||||
handle_missing_link($kimage, $image_dest, "$kimage-$version",
|
handle_missing_link($kimage, $image_dest, "$kimage-$version",
|
||||||
$realimageloc);
|
$realimageloc);
|
||||||
}
|
}
|
||||||
if ($initrd && ! -e "initrd.img") {
|
if ($initrd) {
|
||||||
handle_missing_link("initrd.img", $image_dest, "initrd.img-$version",
|
lstat("initrd.img");
|
||||||
$realimageloc);
|
if (! -e _) {
|
||||||
|
handle_missing_link("initrd.img", $image_dest, "initrd.img-$version",
|
||||||
|
$realimageloc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue