diff --git a/src/nimblepkg/packageparser.nim b/src/nimblepkg/packageparser.nim index 07262c0..f7e96e1 100644 --- a/src/nimblepkg/packageparser.nim +++ b/src/nimblepkg/packageparser.nim @@ -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") diff --git a/tests/tester.nim b/tests/tester.nim index 769310a..41c27f9 100644 --- a/tests/tester.nim +++ b/tests/tester.nim @@ -33,6 +33,7 @@ proc execNimble(args: varargs[string]): tuple[output: string, exitCode: int] = quotedArgs = quoted_args.map((x: string) => ("\"" & x & "\"")) result = execCmdEx(quotedArgs.join(" ")) + #echo(result.output) proc processOutput(output: string): seq[string] = output.strip.splitLines().filter((x: string) => (x.len > 0))