]> git.e2factory.org Git - e2factory.git/commitdiff
bugfix: fix broken e2-fetch-sources --chroot
authorGordon Hecker <gh@emlix.com>
Mon, 22 Feb 2010 14:09:09 +0000 (15:09 +0100)
committerGordon Hecker <gh@emlix.com>
Mon, 22 Feb 2010 14:23:25 +0000 (15:23 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/fetch-sources.lua

index 930be09ac317833d96c2cd191f8cd17607369303..e4e83fad5f26e5331e3e68b7ee74e4afc78cf6a4 100755 (executable)
@@ -115,9 +115,9 @@ end
 -- @return bool
 -- @return nil, an error string on error
 function cache_chroot(info)
-  for _,c in ipairs(info.chroot) do
-    for _,file in ipairs(c.files) do
-      local rc, e = info.cache:cache_file(c.server, file, {})
+  for _,c in ipairs(info.chroot.groups_sorted) do
+    for _,file in ipairs(info.chroot.groups_byname[c].files) do
+      local rc, e = info.cache:cache_file(file.server, file.location, {})
       if not rc then
         return false, "caching file failed"
       end