v1.3.1 - Fixed a small bug with ag update where it would try to remove the version number.
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
local agcfg = {
|
||||
["halyde"] = {
|
||||
["maindir"] = "",
|
||||
["version"] = "1.3.0",
|
||||
["version"] = "1.3.1",
|
||||
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
|
||||
["directories"] = {
|
||||
"halyde/apps",
|
||||
|
||||
@@ -37,7 +37,7 @@ Ahalyde/lib/component.lua
|
||||
Ahalyde/lib/event.lua
|
||||
Ahalyde/lib/filesystem.lua
|
||||
Ahalyde/lib/raster.lua
|
||||
V1.3.0
|
||||
V1.3.1
|
||||
Ahalyde/
|
||||
Ahalyde/apps/
|
||||
Ahalyde/apps/helpdb/
|
||||
|
||||
@@ -272,6 +272,7 @@ local function updatePackage(package)
|
||||
handle:close()
|
||||
local oldFiles = {}
|
||||
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 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))
|
||||
@@ -282,6 +283,7 @@ local function updatePackage(package)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
for _, oldFile in pairs(oldFiles) do
|
||||
print(" Removing " .. oldFile .. "...")
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user