]> git.e2factory.org Git - e2factory.git/commitdiff
cache: fix global tools to comply with the new implementation of e2lib.setup_cache...
authorGordon Hecker <gh@emlix.com>
Fri, 15 Jan 2010 16:13:00 +0000 (17:13 +0100)
committerGordon Hecker <gh@emlix.com>
Fri, 12 Feb 2010 09:51:58 +0000 (10:51 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
global/e2-create-project.lua.in
global/e2-fetch-project.lua.in
global/e2-install-e2.lua.in

index a6cb56368db972cced3e74c84baec9fd7602cf25..52c3d5511b1f27bd3ed0321af57685e4496a0d73 100755 (executable)
@@ -50,9 +50,7 @@ local config, re = e2lib.get_global_config()
 if not config then
   e2lib.abort(e:cat(re))
 end
-local cachedir = e2lib.mktempdir()
-local scache, re = e2lib.setup_cache("temporary cache", cachedir,
-                                                       config.servers)
+local scache, re = e2lib.setup_cache()
 if not scache then
   e2lib.abort(e:cat(re))
 end
index 63c9853afd504144312da52f7f9175f65eeaf15f..b70d1c1322f2e04f217f8b4e06add08d8d60ba4d 100755 (executable)
@@ -54,9 +54,7 @@ e2lib.init2()
 local config = e2lib.get_global_config()
 
 -- setup cache
-local cachedir = e2lib.mktempdir()
-local scache, re = e2lib.setup_cache("temporary cache", cachedir,
-                                                        config.servers)
+local scache, re = e2lib.setup_cache()
 if not scache then
   e2lib.abort(e:cat(re))
 end
@@ -101,9 +99,8 @@ end
 -- fetch project descriptor file
 local tmpdir = e2lib.mktempdir()
 local location = string.format("%s/version", p.location)
-local cache_flags = {}
 local rc, re = cache.fetch_file(scache, p.server, location, tmpdir, nil,
-                                                               cache_flags)
+                                                       { cache = false })
 if not rc then
        e2lib.abort(e:cat(re))
 end
index f6e1aec658d18f8e004d5e9fdcc31896226b5141..babcb244f167779272a9431b3781d3fa91788b50 100755 (executable)
@@ -54,9 +54,7 @@ if not servers then
   e2lib.abort("no servers configured in global config")
 end
 
-local cachedir = e2lib.mktempdir()
-local scache, re = e2lib.setup_cache("temporary cache", cachedir,
-                                                        config.servers)
+local scache, re = e2lib.setup_cache()
 if not scache then
   e2lib.abort(e:cat(re))
 end