Browse Source

Replacing colon's in moonscript source

environments/development/deployments/34
Drew Short 7 years ago
parent
commit
8e6b2e8caa
  1. 12
      src/spm/spm.moon

12
src/spm/spm.moon

@ -75,8 +75,8 @@ getGithubPackages = (repo) ->
--For sorting table values by alphabet
compare = (a, b) ->
for i = 1, math.min(#a, #b)
if a:sub(i, i) ~= b:sub(i, i)
return a:sub(i, i) < b:sub(i, i)
if a\sub(i, i) ~= b\sub(i, i)
return a\sub(i, i) < b\sub(i, i)
return #a < #b
@ -98,8 +98,8 @@ readFromFile = (path) ->
io.stderr\write("Error while trying to read file at " .. path .. ": " .. msg)
return
serializedTableData = file:read("*a")
file:close()
serializedTableData = file\read("*a")
file\close()
return serial.unserialize(serializedTableData) or { -1 }
readFromLocalInstallFile = ->
@ -121,8 +121,8 @@ saveToInstalledPackagesFile = (installedPackages) ->
return
sPacks = serial.serialize(installedPackages)
file:write(sPacks)
file:close()
file\write(sPacks)
file\close()
listPackages = (filter) ->
filter = filter or false

Loading…
Cancel
Save