testing update

This commit is contained in:
2026-08-21 07:35:11 -04:00
parent 3b86113425
commit d4f74e950c
56 changed files with 668 additions and 94 deletions
+14 -2
View File
@@ -699,15 +699,27 @@ local spm = function(...)
content.hash=v.hash
fs.writeAllText("var/spm/db/installed/"..i, json.encode(content))
end
w("Writing changes...")
w("Writing files...")
for i,v in pairs(files) do
w("Writing "..i)
w("Writing package "..i)
for f,c in pairs(v.data) do
if not block[f] then
fs.writeAllText(f,c)
end
end
end
w("Proccessing control files...")
for i,v in pairs(files) do
for f,c in pairs(v.control) do
if f=="symlinks.json" then
local symlinks=json.decode(c)
for src,dest in pairs(symlinks) do
w(src.." -> "..dest)
syscall.symlink(dest, src)
end
end
end
end
w("Install complete")
log.close()