From: Tobias Ulmer Date: Thu, 16 Jan 2014 17:07:34 +0000 (+0100) Subject: Check whether symlink exists, not the destination X-Git-Tag: e2factory-2.3.15rc1~261 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=d6d2c94191074256a7892f932d91493e6e9bab0c;p=e2factory.git Check whether symlink exists, not the destination Signed-off-by: Tobias Ulmer --- diff --git a/local/e2build.lua b/local/e2build.lua index 5bc600a..3d59388 100644 --- a/local/e2build.lua +++ b/local/e2build.lua @@ -77,7 +77,7 @@ local function linklast(info, r, return_flags) return false, e:cat(re) end - if e2lib.exists(lnk) then + if e2lib.stat(lnk, false) then e2lib.unlink(lnk) -- ignore errors, symlink will catch it end