diff options
author | ubq323 <ubq323@ubq323.website> | 2022-08-03 23:37:34 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-08-03 23:37:34 +0100 |
commit | 31c5ffe99d1d228cf2d1c60ceafb10d70dd7e37e (patch) | |
tree | 7c63d6b15f83bf7d5aa8f2e551284b0f4167432a | |
parent | 974bb153bf5fc3665c78e1b24b8373e1233434a8 (diff) |
pm
-rw-r--r-- | pm.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |