Fixes tests.
This commit is contained in:
parent
2f45eab060
commit
4d7b3081a8
2 changed files with 5 additions and 2 deletions
|
|
@ -372,8 +372,10 @@ proc isNimScript*(nf: string, options: Options): bool =
|
|||
result = readPackageInfo(nf, options).isNimScript
|
||||
|
||||
proc toFullInfo*(pkg: PackageInfo, options: Options): PackageInfo =
|
||||
assert(pkg.isMinimal, "Redundant call?")
|
||||
return getPkgInfoFromFile(pkg.mypath, options)
|
||||
if pkg.isMinimal:
|
||||
return getPkgInfoFromFile(pkg.mypath, options)
|
||||
else:
|
||||
return pkg
|
||||
|
||||
when isMainModule:
|
||||
validatePackageName("foo_bar")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue