]> git.e2factory.org Git - e2factory.git/commitdiff
cache: writeback flag is true or false, not nil meaning true
authorTobias Ulmer <tu@emlix.com>
Thu, 3 Nov 2016 17:00:39 +0000 (18:00 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/cache.lua

index e3c2c57ea85233011e078095b40d19e21f87aded..1527e1650514598bd41c9628d67d8da8fb1a9f5b 100644 (file)
@@ -281,6 +281,7 @@ function cache.new_cache_entry(c, server, remote_url, flags, alias_server,
     ce.flags.cachable = flags.cachable
     ce.flags.cache = flags.cache and flags.cachable
     ce.flags.push_permissions = flags.push_permissions
+    ce.flags.writeback = flags.writeback or false
     if flags.islocal ~= nil then
         ce.flags.islocal = flags.islocal
     elseif ru.transport == "file" then
@@ -288,9 +289,6 @@ function cache.new_cache_entry(c, server, remote_url, flags, alias_server,
     else
         ce.flags.islocal = false
     end
-    if flags.writeback ~= nil then
-        ce.flags.writeback = flags.writeback
-    end
     if ce.flags.cache then
         ce.cache_url = cache_url
     else