Fix infinitely recursive "update package lists?" prompt
This commit is contained in:
parent
e9e6f814d0
commit
be991a10f3
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, " &
|
||||
"check internet for updated packages?"):
|
||||
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:
|
||||
raise newException(NimbleError, "Package not found.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue