Merge pull request #233 from Jeff-Ciesielski/jeffc/infinite_search_loop
Fix infinitely recursive "update package lists?" prompt
This commit is contained in:
commit
0da746029e
1 changed files with 5 additions and 1 deletions
|
|
@ -524,7 +524,11 @@ proc getDownloadInfo*(pv: PkgTuple, options: Options,
|
||||||
options.prompt(pv.name & " not found in any local packages.json, " &
|
options.prompt(pv.name & " not found in any local packages.json, " &
|
||||||
"check internet for updated packages?"):
|
"check internet for updated packages?"):
|
||||||
update(options)
|
update(options)
|
||||||
return getDownloadInfo(pv, options, doPrompt)
|
|
||||||
|
# Once we've updated, try again, but don't prompt if not found
|
||||||
|
# (as we've already updated and a failure means it really
|
||||||
|
# isn't there)
|
||||||
|
return getDownloadInfo(pv, options, false)
|
||||||
else:
|
else:
|
||||||
raise newException(NimbleError, "Package not found.")
|
raise newException(NimbleError, "Package not found.")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue