summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-08-03 23:37:34 +0100
committerubq323 <ubq323@ubq323.website>2022-08-03 23:37:34 +0100
commit31c5ffe99d1d228cf2d1c60ceafb10d70dd7e37e (patch)
tree7c63d6b15f83bf7d5aa8f2e551284b0f4167432a
parent974bb153bf5fc3665c78e1b24b8373e1233434a8 (diff)
pm
-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)