equal
deleted
inserted
replaced
465 socket = "LuaSocket"; |
465 socket = "LuaSocket"; |
466 ssl = "LuaSec"; |
466 ssl = "LuaSec"; |
467 }; |
467 }; |
468 local lunbound = dependencies.softreq"lunbound"; |
468 local lunbound = dependencies.softreq"lunbound"; |
469 local lxp = dependencies.softreq"lxp"; |
469 local lxp = dependencies.softreq"lxp"; |
|
470 local hashes = dependencies.softreq"util.hashes"; |
470 for name, module in pairs(package.loaded) do |
471 for name, module in pairs(package.loaded) do |
471 if type(module) == "table" and rawget(module, "_VERSION") |
472 if type(module) == "table" and rawget(module, "_VERSION") |
472 and name ~= "_G" and not name:match("%.") then |
473 and name ~= "_G" and not name:match("%.") then |
473 name = friendly_names[name] or name; |
474 name = friendly_names[name] or name; |
474 if #name > longest_name then |
475 if #name > longest_name then |
487 end |
488 end |
488 library_versions["libunbound"] = lunbound._LIBVER; |
489 library_versions["libunbound"] = lunbound._LIBVER; |
489 end |
490 end |
490 if lxp then |
491 if lxp then |
491 library_versions["libexpat"] = lxp._EXPAT_VERSION; |
492 library_versions["libexpat"] = lxp._EXPAT_VERSION; |
|
493 end |
|
494 if hashes then |
|
495 library_versions["libcrypto"] = hashes._LIBCRYPTO_VERSION; |
492 end |
496 end |
493 for name, version in sorted_pairs(module_versions) do |
497 for name, version in sorted_pairs(module_versions) do |
494 print(name..":"..string.rep(" ", longest_name-#name), version); |
498 print(name..":"..string.rep(" ", longest_name-#name), version); |
495 end |
499 end |
496 print(""); |
500 print(""); |