summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-01-09 10:08:00 +0100
committerHans Hagen <pragma@wxs.nl>2012-01-09 10:08:00 +0100
commitcb61e304a824404b3847969f1da89f868449df8b (patch)
tree6e8e108d1c511292d90cbdd7b4922851d7d29ef0 /scripts
parent0b16692d7b6129a0a7087b86fe51bbc2d5ce03ce (diff)
downloadcontext-cb61e304a824404b3847969f1da89f868449df8b.tar.gz
beta 2012.01.09 10:08
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-interface.lua3
-rw-r--r--scripts/context/lua/mtx-update.lua2
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-interface.lua b/scripts/context/lua/mtx-interface.lua
index db66d4eed..f52fde345 100644
--- a/scripts/context/lua/mtx-interface.lua
+++ b/scripts/context/lua/mtx-interface.lua
@@ -401,7 +401,8 @@ function scripts.interface.interfaces()
end
function scripts.interface.preprocess()
- require("luat-mac.lua")
+ dofile(resolvers.findfile("luat-mac.lua"))
+ -- require("luat-mac.lua")
local newsuffix = environment.argument("suffix") or "log"
local force = environment.argument("force")
for i=1,#environment.files do
diff --git a/scripts/context/lua/mtx-update.lua b/scripts/context/lua/mtx-update.lua
index cb12b99ce..52c72da6d 100644
--- a/scripts/context/lua/mtx-update.lua
+++ b/scripts/context/lua/mtx-update.lua
@@ -401,7 +401,7 @@ function scripts.update.synchronize()
if not environment.argument("force") then
dryrunflags = "--dry-run"
end
- if (destination:find("texmf$") or destination:find("texmf%-context$")) and (not environment.argument("keep")) then
+ if (destination:find("texmf$") or destination:find("texmf%-context$") or destination:find("texmf%-modules$")) and (not environment.argument("keep")) then
deleteflags = states.get("rsync.flags.delete")
end
command = format("%s %s %s %s %s'%s' '%s'", bin, normalflags, deleteflags, dryrunflags, url, archives, destination)