Browse Source

Handling filepath saved to local filestore

environments/production/deployments/22
Drew Short 7 years ago
parent
commit
fa2396d869
  1. 7
      src/spm/spm.lua

7
src/spm/spm.lua

@ -430,11 +430,14 @@ local function installPackage(requestedPackage, installPath, doUpdate)
installedPath = fs.concat(installPath, requestedInstallPath, string.gsub(filePath, ".+(/.-)$", "%1"), nil)
end
local downloadPath
if packageInfo.minified or options.m then
filePath = string.gsub(filePath, "(.+)%.lua$", "%1") .. ".min.lua"
downloadPath = repositoryPath .. "/" .. string.gsub(filePath, "(.+)%.lua$", "%1") .. ".min.lua"
else
downloadPath = repositoryPath .. "/" .. filePath
end
local success = pcall(downloadFile, repositoryPath .. "/" .. filePath, installedPath)
local success = pcall(downloadFile, downloadPath, installedPath)
if success then
locallyInstalledPackages[requestedPackage][filePath] = installedPath
end

Loading…
Cancel
Save