v1.3.1 - Fixed a small bug with ag update where it would try to remove the version number.

This commit is contained in:
TheWahlolly
2025-05-21 16:35:59 +03:00
parent af78ccd373
commit 6f4cb4acb0
4 changed files with 12 additions and 10 deletions
+9 -7
View File
@@ -272,13 +272,15 @@ local function updatePackage(package)
handle:close()
local oldFiles = {}
for line in (data .. "\n"):gmatch("(.-)\n") do
if agcfg[package].directories then
if not table.find(agcfg[package].files, line:sub(2)) and not table.find(agcfg[package].directories, line:sub(2, -2)) then
table.insert(oldFiles, line:sub(2))
end
else
if not table.find(agcfg[package].files, line:sub(2)) then
table.insert(oldFiles, line:sub(2))
if line:sub(1, 1) == "A" or line:sub(1, 1) == "M" then
if agcfg[package].directories then
if not table.find(agcfg[package].files, line:sub(2)) and not table.find(agcfg[package].directories, line:sub(2, -2)) then
table.insert(oldFiles, line:sub(2))
end
else
if not table.find(agcfg[package].files, line:sub(2)) then
table.insert(oldFiles, line:sub(2))
end
end
end
end
+1 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 1.3.0"
_G._OSVERSION = "Halyde 1.3.1"
_G._OSLOGO = ""
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat