]> git.e2factory.org Git - e2factory.git/commitdiff
store path to source configuration correctly
authorGordon Hecker <gh@emlix.com>
Thu, 11 Jun 2009 13:06:43 +0000 (15:06 +0200)
committerGordon Hecker <gh@emlix.com>
Tue, 16 Jun 2009 08:13:33 +0000 (10:13 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2tool.lua

index 967aa88ad0150ecb4f121216b2c596af87e052c9..cf97f0810ade5a86d30b139f86967c796d1dd5aa 100644 (file)
@@ -2406,11 +2406,10 @@ function e2tool.load_source_config(info)
 
     for _,item in ipairs(list) do
       local name = item.data.name
-
+      item.data.directory = src
       if not name and #list == 1 then
        e2lib.warnf("WDEFAULT", "`name' attribute missing in source config.")
        e2lib.warnf("WDEFAULT", " Defaulting to directory name")
-        item.data.directory = src
         item.data.name = slashToDot(src)
         name = slashToDot(src)
       end