summaryrefslogtreecommitdiff
path: root/pm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pm.lua')
-rw-r--r--pm.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/pm.lua b/pm.lua
index 5864d25..a9314e4 100644
--- a/pm.lua
+++ b/pm.lua
@@ -92,7 +92,7 @@ end
local function filesof(dep_set)
local files = {}
- for dep in pairs(dep_list) do
+ for dep in pairs(dep_set) do
for file in pairs(manifest(dep).files) do files[file] = true end
end
return files
@@ -126,11 +126,11 @@ end
local function dl_many(pkgnames)
local dep_set = {}
- for _,pkname in ipairs(pkgnames) do
+ for _,pkgname in ipairs(pkgnames) do
recursive_depsof(pkgname, dep_set)
end
local files = filesof(dep_set)
- print("all dependencies: "..fmt_set(deps))
+ print("all dependencies: "..fmt_set(dep_set))
print("all files: "..fmt_set(files))
for file in pairs(files) do
dlfile(file)
@@ -145,7 +145,7 @@ end
if is_required() then
return {manifest=manifest,
rd=recursive_depsof,
- rf=recursive_filesof,
+ filesof=filesof,
dl=dl,
dl_many=dl_many,
cc=clear_cache}