Fixes tests.
This commit is contained in:
parent
432c91b938
commit
53856db8ff
10 changed files with 14 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue