Browse Source

Bumping SPM version

environments/production/deployments/12
Drew Short 7 years ago
parent
commit
119cec4c6c
  1. 2
      src/programs.cfg
  2. 6
      src/spm/spm.lua

2
src/programs.cfg

@ -10,6 +10,6 @@
note = "SPM operates similarly to OPPM, with slight modifications to referential repositories", note = "SPM operates similarly to OPPM, with slight modifications to referential repositories",
hidden = false, hidden = false,
repo = "", repo = "",
version = "0.1"
version = "0.2"
} }
} }

6
src/spm/spm.lua

@ -109,7 +109,7 @@ local function readFromFile(fNum)
end end
if not fs.exists(fs.path(path)) then if not fs.exists(fs.path(path)) then
fs.makeDirectory(fs.path(path)) fs.makeDirectory(fs.path(path))
end
end/o
if not fs.exists(path) then if not fs.exists(path) then
return { -1 } return { -1 }
end end
@ -213,7 +213,7 @@ local function printPackages(tPacks)
end end
term.clear() term.clear()
local xRes, yRes = gpu.getResolution() local xRes, yRes = gpu.getResolution()
print("--OpenPrograms Package list--")
print("--SPM Package list--")
local xCur, yCur = term.getCursor() local xCur, yCur = term.getCursor()
for _, j in ipairs(tPacks) do for _, j in ipairs(tPacks) do
term.write(j .. "\n") term.write(j .. "\n")
@ -223,7 +223,7 @@ local function printPackages(tPacks)
local event = event.pull("key_down") local event = event.pull("key_down")
if event then if event then
term.clear() term.clear()
print("--OpenPrograms Package list--")
print("--SPM Package list--")
xCur, yCur = term.getCursor() xCur, yCur = term.getCursor()
end end
end end

Loading…
Cancel
Save