From: Gordon Hecker Date: Wed, 6 May 2009 10:34:22 +0000 (+0200) Subject: fix a bug where cache.file_path() was used without caching the file X-Git-Tag: e2factory-2.3.1pre1~24 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=8864785e013bbd4b1d7f7c8c1d1a8aa7e9901791;p=e2factory.git fix a bug where cache.file_path() was used without caching the file before using cache.cache_file() Signed-off-by: Gordon Hecker --- diff --git a/local/files.lua b/local/files.lua index 9bcacc1..090c707 100644 --- a/local/files.lua +++ b/local/files.lua @@ -250,7 +250,7 @@ function files.prepare_source(info, sourcename, sourceset, buildpath) end if file.patch then local cache_flags = { cache = true } - local rc, re = cache.file_path(info.cache, file.server, file.location, + local rc, re = cache.cache_file(info.cache, file.server, file.location, cache_flags) if not rc then return false, e:cat(re)