From 94a70511121db6db6609a04c52c0d38b0359a814 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 6 Jun 2020 19:51:41 +1000 Subject: [PATCH] more archive format fixes, oops --- makepkg.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makepkg.lua b/makepkg.lua index 35e4b73..d5221fa 100644 --- a/makepkg.lua +++ b/makepkg.lua @@ -59,6 +59,7 @@ for k,v in ipairs(files) do local content = f:read("*a") f:close() of:write(genHeader(fnormalize(v:sub(tArgs[1]:len()+1)),content:len())) + print(content:len()) of:write(content) end end @@ -74,6 +75,7 @@ if lzss then local b = f:read(4096) if not b or b:len() < 1 then break end b = lzss.compress(b) + of:write(cint(b:len(),2)) of:write(b) end f:close()