Browse Source

Hedging against repositories without src or repo

environments/development/deployments/45
Drew Short 7 years ago
parent
commit
c166876970
  1. 7
      src/spm/spm.moon

7
src/spm/spm.moon

@ -76,7 +76,12 @@ getRepositories = (repoLocation) ->
repositories[linkedRepositoryName] = linkedRepository
continue
src = repository.src or nil
if repository.src == nil and repository.repo == nil
print("Repository malformed/unsupported:" .. repositoryName)
continue
src = repository.src
if src == nil
src = githubContentRoot .. repository.repo .."/master"
repositories[repositoryName] = Repository(repositoryName, src)

Loading…
Cancel
Save