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
+1 -1
View File
@@ -1,7 +1,7 @@
local agcfg = { local agcfg = {
["halyde"] = { ["halyde"] = {
["maindir"] = "", ["maindir"] = "",
["version"] = "1.3.0", ["version"] = "1.3.1",
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.", ["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
["directories"] = { ["directories"] = {
"halyde/apps", "halyde/apps",
+1 -1
View File
@@ -37,7 +37,7 @@ Ahalyde/lib/component.lua
Ahalyde/lib/event.lua Ahalyde/lib/event.lua
Ahalyde/lib/filesystem.lua Ahalyde/lib/filesystem.lua
Ahalyde/lib/raster.lua Ahalyde/lib/raster.lua
V1.3.0 V1.3.1
Ahalyde/ Ahalyde/
Ahalyde/apps/ Ahalyde/apps/
Ahalyde/apps/helpdb/ Ahalyde/apps/helpdb/
+2
View File
@@ -272,6 +272,7 @@ local function updatePackage(package)
handle:close() handle:close()
local oldFiles = {} local oldFiles = {}
for line in (data .. "\n"):gmatch("(.-)\n") do for line in (data .. "\n"):gmatch("(.-)\n") do
if line:sub(1, 1) == "A" or line:sub(1, 1) == "M" then
if agcfg[package].directories 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 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)) table.insert(oldFiles, line:sub(2))
@@ -282,6 +283,7 @@ local function updatePackage(package)
end end
end end
end end
end
for _, oldFile in pairs(oldFiles) do for _, oldFile in pairs(oldFiles) do
print(" Removing " .. oldFile .. "...") print(" Removing " .. oldFile .. "...")
end end
+1 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ... local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile) local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 1.3.0" _G._OSVERSION = "Halyde 1.3.1"
_G._OSLOGO = "" _G._OSLOGO = ""
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat repeat