Comparison

util/dependencies.lua @ 9560:cb92e1c8b6db

util.dependencies: Remove ztact compatability warning
author Matthew Wild <mwild1@gmail.com>
date Fri, 26 Oct 2018 19:09:02 +0100
parent 9494:b19f676203fd
child 10049:c523642ea293
child 11140:e17b98feb0b7
comparison
equal deleted inserted replaced
9559:7c65e3f38e6e 9560:cb92e1c8b6db
30 print(msg or (name.." is required for Prosody to run, so we will now exit.")); 30 print(msg or (name.." is required for Prosody to run, so we will now exit."));
31 print("More help can be found on our website, at https://prosody.im/doc/depends"); 31 print("More help can be found on our website, at https://prosody.im/doc/depends");
32 print("**************************"); 32 print("**************************");
33 print(""); 33 print("");
34 end 34 end
35
36 -- COMPAT w/pre-0.8 Debian: The Debian config file used to use
37 -- util.ztact, which has been removed from Prosody in 0.8. This
38 -- is to log an error for people who still use it, so they can
39 -- update their configs.
40 package.preload["util.ztact"] = function ()
41 if not package.loaded["core.loggingmanager"] then
42 error("util.ztact has been removed from Prosody and you need to fix your config "
43 .."file. More information can be found at https://prosody.im/doc/packagers#ztact", 0);
44 else
45 error("module 'util.ztact' has been deprecated in Prosody 0.8.");
46 end
47 end;
48 35
49 local function check_dependencies() 36 local function check_dependencies()
50 if _VERSION < "Lua 5.1" then 37 if _VERSION < "Lua 5.1" then
51 print "***********************************" 38 print "***********************************"
52 print("Unsupported Lua version: ".._VERSION); 39 print("Unsupported Lua version: ".._VERSION);