From 8864785e013bbd4b1d7f7c8c1d1a8aa7e9901791 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Wed, 6 May 2009 12:34:22 +0200 Subject: [PATCH] fix a bug where cache.file_path() was used without caching the file before using cache.cache_file() Signed-off-by: Gordon Hecker --- local/files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5