Skip to content

Fix package availability queries to use the API#634

Merged
marcelotrevisani merged 2 commits intoconda:mainfrom
mgorny:package-avail
Jan 17, 2026
Merged

Fix package availability queries to use the API#634
marcelotrevisani merged 2 commits intoconda:mainfrom
mgorny:package-avail

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented Jan 14, 2026

Description

Fix anaconda.org package availability queries to use API URLs rather than webpages. The latter have recently started returning 200 status code even when the text indicates a 404 error, and using the API is more correct anyway. Technically, we could also switch to HEAD requests, but I'm not sure if that wouldn't break some custom URLs.

Fix anaconda.org package availability queries to use API URLs rather
than webpages.  The latter have recently started returning 200 status
code even when the text indicates a 404 error, and using the API is more
correct anyway.  Technically, we could also switch to HEAD requests, but
I'm not sure if that wouldn't break some custom URLs.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
@marcelotrevisani marcelotrevisani merged commit 810e9f7 into conda:main Jan 17, 2026
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants