]> git.e2factory.org Git - e2factory.git/commitdiff
bugfix: don't create symlink if unpack and source name are the same
authorTobias Ulmer <tu@emlix.com>
Fri, 24 Jul 2009 14:23:47 +0000 (16:23 +0200)
committerGordon Hecker <gh@emlix.com>
Fri, 2 Oct 2009 10:40:07 +0000 (12:40 +0200)
local/files.lua

index 700e46e19566ce62e67c0371a6e99c8c65f50b2e..0b825a8066342233da157af81051e579005f817b 100644 (file)
@@ -430,7 +430,7 @@ function files.toresult(info, sourcename, sourceset, directory)
                if c then
                        f:write(string.format("\t%s\n", c))
                end
-               if file.unpack then
+               if file.unpack and file.unpack ~= sourcename then
                        f:write(string.format(
                        "\tln -s %s $(BUILD)/%s\n", file.unpack, sourcename))
                end