|
|
@ -36,7 +36,7 @@ local function printUsage() |
|
|
|
print("'spm list [-i] <filter>' to get a list of available packages containing the specified substring") |
|
|
|
print(" -i: Only list already installed packages") |
|
|
|
print("'spm info <package>' to get further information about a program package") |
|
|
|
print("'spm install|add [-f] [-m] <package> [path]' to download a package to a directory on your system (or /usr by default)") |
|
|
|
print("'spm install|add [-f] [[-nm][-m]] <package> [path]' to download a package to a directory on your system (or /usr by default)") |
|
|
|
print("'spm update|upgrade <package>' to update an already installed package") |
|
|
|
print("'spm update|upgrade all' to update every already installed package") |
|
|
|
print("'spm uninstall|remove <package>' to remove a package from your system") |
|
|
@ -432,7 +432,7 @@ local function installPackage(requestedPackage, installPath, doUpdate) |
|
|
|
end |
|
|
|
|
|
|
|
local downloadPath |
|
|
|
if packageInfo.minified or options.m then |
|
|
|
if (packageInfo.minified or options.m) and not options.nm then |
|
|
|
downloadPath = repositoryPath .. "/" .. string.gsub(filePath, "(.+)%.lua$", "%1") .. ".min.lua" |
|
|
|
else |
|
|
|
downloadPath = repositoryPath .. "/" .. filePath |
|
|
|