update grab system

This commit is contained in:
Kirigaya Kazuto 2018-11-21 12:08:25 +08:00
parent 4dad75e76b
commit 748d80da8e
2 changed files with 28 additions and 2 deletions

View File

@ -174,7 +174,7 @@ if(args[1]=="install") then
local to_add={}
for this_lib in pairs(to_install) do
if(not db[this_lib]) then
print("Library " .. this_lib .. " not found.")
print("Library '" .. this_lib .. "' not found.")
return
else
if(db[this_lib].requires) then
@ -226,8 +226,10 @@ if(args[1]=="install") then
local ok,result,code=download(UrlGenerator("Kiritow/OpenComputerScripts","master",toDownload))
if(not ok) then
print("[Download Failed] " .. result)
return
elseif(code~=200) then
print("[Download Failed] response code " .. code .. " is not 200.")
return
else
if(type(v)=="string") then
local f=io.open(v,"w")

View File

@ -7,7 +7,7 @@
}
},
["checkarg"]={
title="Check Arugment",
title="Arugment Checker",
info="For easier argument checking",
files={
"checkarg.lua"
@ -23,6 +23,30 @@
"checkarg"
}
},
["libgpu"]={
title="LibGPU",
info="For easier gpu programming",
files={
"libgpu.lua"
}
},
["simple_data_structure"]={
title="Simple Lua Data Structure",
info="Provides class(...),queue and vector",
files={
"class.lua", "queue.lua", "vector.lua"
}
}
["minesweeper"]={
title="Mine Sweeper",
info="A simple game",
files={
"MineSweeper.lua"
},
requires={
"libgpu","libevent","simple_data_structure"
}
},
["drone"]={
title="Drone",
info="Drone console and bios",