]> git.e2factory.org Git - e2factory.git/commitdiff
Check whether symlink exists, not the destination
authorTobias Ulmer <tu@emlix.com>
Thu, 16 Jan 2014 17:07:34 +0000 (18:07 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2build.lua

index 5bc600a7338f42c492117f72e5139a8f7b594293..3d593881139648cc27bb85a341d3226c8e7334a3 100644 (file)
@@ -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