summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pm.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/pm.lua b/pm.lua
index 6983138..7d8873a 100644
--- a/pm.lua
+++ b/pm.lua
@@ -8,7 +8,7 @@ end
local function manifest(pkgname)
print("fetching manifest of '"..pkgname.."'...")
- local ,err = http.get(rbase..pkgname..".dat")
+ local res,err = http.get(rbase..pkgname..".dat")
perr(err,"http.get")
local files={}
local files_present=false
@@ -16,7 +16,7 @@ local function manifest(pkgname)
for line in res:gmatch"[^\n]+" do
local op,argstart = line:match "^(%w+)%s+()"
if op then
- argstr = line:sub(argstart)
+ local argstr = line:sub(argstart)
local args = {}
for arg in argstr:gmatch"[^ ]+" do
table.insert(args,arg)