Commit b8606edc authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: postinst -- detect symlinks correctly

BugLink: http://bugs.launchpad.net/bugs/1536810Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent f0457aba
...@@ -856,7 +856,8 @@ if ($initrd) { ...@@ -856,7 +856,8 @@ if ($initrd) {
image_magic("initrd.img", $image_dest); image_magic("initrd.img", $image_dest);
} }
else { else {
if (! -e "initrd.img") { lstat("initrd.img");
if (! -e _) {
handle_missing_link("initrd.img", $image_dest, "initrd.img-$version", handle_missing_link("initrd.img", $image_dest, "initrd.img-$version",
$realimageloc); $realimageloc);
} }
...@@ -914,7 +915,8 @@ if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m/<unknown>/og) { ...@@ -914,7 +915,8 @@ if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m/<unknown>/og) {
image_magic($kimage, $image_dest); image_magic($kimage, $image_dest);
} }
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);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment