Software /
code /
prosody
Comparison
util/dependencies.lua @ 4236:75ef9ea83b07
util.dependencies: Add a dummy util.ztact loader to log a message for people still using it (e.g. in their Debian-derived config files)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 05 Apr 2011 13:20:09 +0100 |
parent | 3922:b77bafa4c502 |
child | 4426:ee65aa40ef60 |
comparison
equal
deleted
inserted
replaced
4235:899ffc1674b5 | 4236:75ef9ea83b07 |
---|---|
32 print(msg or (name.." is required for Prosody to run, so we will now exit.")); | 32 print(msg or (name.." is required for Prosody to run, so we will now exit.")); |
33 print("More help can be found on our website, at http://prosody.im/doc/depends"); | 33 print("More help can be found on our website, at http://prosody.im/doc/depends"); |
34 print("**************************"); | 34 print("**************************"); |
35 print(""); | 35 print(""); |
36 end | 36 end |
37 | |
38 -- COMPAT w/pre-0.8 Debian: The Debian config file used to use | |
39 -- util.ztact, which has been removed from Prosody in 0.8. This | |
40 -- is to log an error for people who still use it, so they can | |
41 -- update their configs. | |
42 package.preload["util.ztact"] = function () | |
43 if not package.loaded["core.loggingmanager"] then | |
44 error("util.ztact has been removed from Prosody and you need to fix your config " | |
45 .."file. More information can be found at http://prosody.im/doc/packagers#ztact", 0); | |
46 else | |
47 error("module 'util.ztact' has been deprecated in Prosody 0.8."); | |
48 end | |
49 end; | |
37 | 50 |
38 function check_dependencies() | 51 function check_dependencies() |
39 local fatal; | 52 local fatal; |
40 | 53 |
41 local lxp = softreq "lxp" | 54 local lxp = softreq "lxp" |