From 41eb56a04a808b6fdf1a18a93466f0586d161820 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 20 Aug 2024 10:29:58 -0400 Subject: Rename python_package_exists to pip_index_provides * Document the function prototype * Add missing comments in micromamba structure --- src/conda.c | 2 +- src/delivery.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/conda.c b/src/conda.c index 613a57f..f7c7250 100644 --- a/src/conda.c +++ b/src/conda.c @@ -79,7 +79,7 @@ int pip_exec(const char *args) { return system(command); } -int python_package_exists(const char *index_url, const char *name, const char *version) { +int pip_index_provides(const char *index_url, const char *name, const char *version) { char cmd[PATH_MAX] = {0}; char name_local[255]; char version_local[255] = {0}; diff --git a/src/delivery.c b/src/delivery.c index 2b69ec3..524dd0a 100644 --- a/src/delivery.c +++ b/src/delivery.c @@ -1504,7 +1504,7 @@ void delivery_defer_packages(struct Delivery *ctx, int type) { } } - if (DEFER_PIP == type && python_package_exists(PYPI_INDEX_DEFAULT, name, version)) { + if (DEFER_PIP == type && pip_index_provides(PYPI_INDEX_DEFAULT, name, version)) { fprintf(stderr, "(%s present on index %s): ", version, PYPI_INDEX_DEFAULT); ignore_pkg = 0; } else { -- cgit