From: Gordon Hecker Date: Mon, 22 Feb 2010 14:09:09 +0000 (+0100) Subject: bugfix: fix broken e2-fetch-sources --chroot X-Git-Tag: e2factory-2.3.4pre2~7 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=98e06f368dbe5e05d3c94739acb8eb4ee626a6b5;p=e2factory.git bugfix: fix broken e2-fetch-sources --chroot Signed-off-by: Gordon Hecker --- diff --git a/local/fetch-sources.lua b/local/fetch-sources.lua index 930be09..e4e83fa 100755 --- a/local/fetch-sources.lua +++ b/local/fetch-sources.lua @@ -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