diff --git a/src/spm/spm.moon b/src/spm/spm.moon index 6fe0bd9..6b7fe0e 100644 --- a/src/spm/spm.moon +++ b/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)