mirror of
https://github.com/20kdc/OC-KittenOS.git
synced 2024-12-25 02:18:07 +11:00
CLAW testing & cleanup
This commit is contained in:
parent
8fc441299b
commit
8fe18f9609
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,3 +14,5 @@ work/*/*/
|
||||
work/*/*/*
|
||||
inst.lua
|
||||
com2/code.tar.bd
|
||||
upldr.sh
|
||||
repository/inst.lua
|
||||
|
@ -10,7 +10,6 @@ if not neoux then error(err) end
|
||||
neoux = neoux(event, neo)
|
||||
local claw = require("claw")()
|
||||
|
||||
-- HTTP-only because OCEmu SUCKS
|
||||
local source = "http://20kdc.duckdns.org/neo/"
|
||||
local disks = neo.requireAccess("c.filesystem", "searching disks for packages")
|
||||
local primaryDisk = disks.primary
|
||||
@ -37,7 +36,6 @@ local function download(url, cb)
|
||||
cb(nil)
|
||||
return nil, tostring(err)
|
||||
end
|
||||
local dt = ""
|
||||
while true do
|
||||
local n, n2 = req.read()
|
||||
local o, r = cb(n)
|
||||
@ -58,7 +56,6 @@ local function download(url, cb)
|
||||
end
|
||||
end
|
||||
end
|
||||
req.close()
|
||||
return true
|
||||
end
|
||||
|
||||
|
@ -152,11 +152,12 @@ return function ()
|
||||
ifo = ifo .. (t or "")
|
||||
return true
|
||||
end)
|
||||
e = e or "local.lua parse error"
|
||||
ifo = ifok and require("serial").deserialize(ifo)
|
||||
if not (dst or ifo) then return false, e end
|
||||
table.insert(sourceList, {name, not not dst})
|
||||
sources[name] = {src, dst, ifo or {}}
|
||||
return not not ifo, e or "local.lua parse error"
|
||||
return not not ifo, e
|
||||
end,
|
||||
remove = remove,
|
||||
installTo = installTo,
|
||||
|
@ -1,7 +1,9 @@
|
||||
-- This is released into the public domain.
|
||||
-- No warranty is provided, implied or otherwise.
|
||||
|
||||
-- app-eeprom: Tiny EEPROM flasher
|
||||
-- app-eeprog.lua : Tiny EEPROM flasher
|
||||
-- Authors: 20kdc
|
||||
|
||||
-- Example of a tiny app a user could write relatively quickly if they have NEO system knowledge
|
||||
-- Note the high amount of synchronous routines used here.
|
||||
-- For a tiny app like this, it's fine, and KittenOS NEO makes sure it won't interfere.
|
||||
|
@ -1,3 +1,9 @@
|
||||
-- This is released into the public domain.
|
||||
-- No warranty is provided, implied or otherwise.
|
||||
|
||||
-- local.lua : CLAW Repository Metadata
|
||||
-- Authors: 20kdc
|
||||
|
||||
return {
|
||||
["app-eeprog"] = {
|
||||
desc = "EEPROM programmer / copier",
|
||||
@ -11,17 +17,5 @@ return {
|
||||
files = {
|
||||
"apps/app-eeprog.lua"
|
||||
},
|
||||
},
|
||||
["mtd"] = {
|
||||
desc = "Multi-Track Drifting",
|
||||
v = 1337,
|
||||
deps = {
|
||||
"app-eeprog"
|
||||
},
|
||||
dirs = {
|
||||
},
|
||||
files = {
|
||||
"oreproc.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
Hello new world
|
Loading…
Reference in New Issue
Block a user