aboutsummaryrefslogtreecommitdiffstats
path: root/l0/DependencyControl.lua
blob: 6dd008c7a7ad043069c96e6ae059a2d2a592c526 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
local inspect = require "inspect"

local noop = function() end

local function get_version_record(i)
	local f = io.open("version", "w")
	f:write(inspect(i))
	f:flush()
	f:close()
	return {
		checkVersion = noop,
		getConfigFileName = noop,
		getConfigHandler = noop,
		getLogger = noop,
		getVersionNumber = noop,
		getVersionString = noop,
		loadConfig = noop,
		loadModule = noop,
		moveFile = noop,
		register = noop,
		registerMacro = noop,
		registerMacros = noop,
		registerTests = noop,
		requireModules = noop,
		writeConfig = noop,
		getUpdaterErrorMsg = noop,
		getUpdaterLock = noop,
		releaseUpdaterLock = noop,
		update = noop,
	}
end

return get_version_record