Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source: Catch CondaHTTPError so mutliple urls get checked #1683

Merged
merged 1 commit into from
Jan 20, 2017

Conversation

mingwandroid
Copy link
Contributor

@msarahan, @kalefranz, please review. I'm not sure I need the old:

             except RuntimeError as e:
                 print("Error: %s" % str(e).strip(), file=sys.stderr)

.. still, but I kept it anyway.

This is needed for R packages where each meta.yaml lists two URLs:

  url:
    - http://cran.r-project.org/src/contrib/backports_1.0.4.tar.gz
    - http://cran.r-project.org/src/contrib/Archive/backports/backports_1.0.4.tar.gz

@@ -59,6 +59,8 @@ def download_to_cache(metadata, config):
try:
print("Downloading %s" % url)
download(url, path)
except CondaHTTPError as e:
print("Error: %s" % str(e).strip(), file=sys.stderr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would like these to be calls to logging rather than print, but I'm going to merge this as-is and refactor it next time I see it.

@msarahan
Copy link
Contributor

LGTM. All failures are known and part of the conda 4.3 stuff. Merging.

@msarahan msarahan merged commit fb21061 into conda:master Jan 20, 2017
@github-actions
Copy link

github-actions bot commented May 6, 2022

Hi there, thank you for your contribution!

This pull request has been automatically locked because it has not had recent activity after being closed.

Please open a new issue or pull request if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants