Fixes tests.

This commit is contained in:
Dominik Picheta 2016-12-27 13:54:54 +00:00
commit 53856db8ff
10 changed files with 14 additions and 13 deletions

View file

@ -273,7 +273,6 @@ proc readPackageInfo(nf: NimbleFile, options: Options,
if onlyMinimalInfo:
result.name = minimalInfo.name
result.version = minimalInfo.version
result.specialVersion = result.version
result.isNimScript = true
result.isMinimal = true
else:
@ -288,6 +287,9 @@ proc readPackageInfo(nf: NimbleFile, options: Options,
" " & getCurrentExceptionMsg() & "."
raise newException(NimbleError, msg)
# By default specialVersion is the same as version.
result.specialVersion = result.version
# The package directory name may include a "special" version
# (example #head). If so, it is given higher priority and therefore
# overwrites the .nimble file's version.