Fixes travis build and adds some new licenses to scanner.

This commit is contained in:
Dominik Picheta 2016-10-31 20:18:30 +01:00
commit 79de16a6ac
2 changed files with 5 additions and 3 deletions

View file

@ -30,6 +30,7 @@ const
"Allegro 4 Giftware",
"Apache License 2.0",
"BSD",
"BSD2",
"BSD3",
"CC0",
"GPL",
@ -43,7 +44,8 @@ const
"WTFPL",
"libpng",
"zlib",
"ISC"
"ISC",
"Unlicense"
]
VCS_TYPES = @["git", "hg"]
@ -59,7 +61,7 @@ proc canFetchNimbleRepository(name: string, urlJson: JsonNode): bool =
url = urlJson.str
try:
discard getContent(url, timeout=5000)
discard getContent(url, timeout=10000)
except HttpRequestError, TimeoutError:
echo "E: ", name, ": unable to fetch repository ", url, " ",
getCurrentExceptionMsg()