From 31c5ffe99d1d228cf2d1c60ceafb10d70dd7e37e Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 3 Aug 2022 23:37:34 +0100 Subject: pm --- pm.lua | 4 ++-- 1 file 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) -- cgit v1.2.3