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 = {
|
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",
|
||||||
|
|||||||
@@ -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/
|
||||||
|
|||||||
@@ -272,13 +272,15 @@ 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 agcfg[package].directories then
|
if line:sub(1, 1) == "A" or line:sub(1, 1) == "M" then
|
||||||
if not table.find(agcfg[package].files, line:sub(2)) and not table.find(agcfg[package].directories, line:sub(2, -2)) then
|
if agcfg[package].directories then
|
||||||
table.insert(oldFiles, line:sub(2))
|
if not table.find(agcfg[package].files, line:sub(2)) and not table.find(agcfg[package].directories, line:sub(2, -2)) then
|
||||||
end
|
table.insert(oldFiles, line:sub(2))
|
||||||
else
|
end
|
||||||
if not table.find(agcfg[package].files, line:sub(2)) then
|
else
|
||||||
table.insert(oldFiles, line:sub(2))
|
if not table.find(agcfg[package].files, line:sub(2)) then
|
||||||
|
table.insert(oldFiles, line:sub(2))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user