|
@ -37,7 +37,6 @@ printUsage = -> |
|
|
print("'spm copy <package>' to copy package files to another location") |
|
|
print("'spm copy <package>' to copy package files to another location") |
|
|
print(" -f: Force creation of directories and overwriting of existing files.") |
|
|
print(" -f: Force creation of directories and overwriting of existing files.") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Make an internet http/s request for data |
|
|
-- Make an internet http/s request for data |
|
|
getContent = (url) -> |
|
|
getContent = (url) -> |
|
|
sContent = "" |
|
|
sContent = "" |
|
@ -52,7 +51,7 @@ getContent = (url) -> |
|
|
return sContent |
|
|
return sContent |
|
|
|
|
|
|
|
|
-- Request repository information |
|
|
-- Request repository information |
|
|
getRepos -> |
|
|
|
|
|
|
|
|
getRepos = -> |
|
|
success, sRepos = pcall(getContent, repoLocationConfig) |
|
|
success, sRepos = pcall(getContent, repoLocationConfig) |
|
|
|
|
|
|
|
|
if not success |
|
|
if not success |
|
|