added getOrDefault; bootstrapping works again
This commit is contained in:
parent
d8b0edc323
commit
2fda95a4d6
9 changed files with 52 additions and 40 deletions
|
|
@ -48,7 +48,7 @@ proc addPackage(packages: StringTableRef, p: string) =
|
|||
let name = p.substr(0, x-1)
|
||||
if x < p.len:
|
||||
let version = p.substr(x+1)
|
||||
if packages[name] <. version:
|
||||
if packages.getOrDefault(name) <. version:
|
||||
packages[name] = version
|
||||
else:
|
||||
packages[name] = latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue