diff --git a/grab.lua b/grab.lua index fff9a2f..df7771d 100644 --- a/grab.lua +++ b/grab.lua @@ -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") diff --git a/programs.info b/programs.info index 2393bc3..3f2d641 100644 --- a/programs.info +++ b/programs.info @@ -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",