diff options
| author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2026-05-06 14:29:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-06 14:29:21 -0400 |
| commit | b494ddd036f9b17fcfabd42decd325bbe8be914e (patch) | |
| tree | 4b722c242e454332d3eef596b68f2fad9d935fe1 /src/lib/delivery/include | |
| parent | e412ae6ff1aa793799ccdbe893484273e71e909a (diff) | |
| parent | 17bd286713df8f76f7b5f3878e501a81fa4c04ee (diff) | |
| download | stasis-b494ddd036f9b17fcfabd42decd325bbe8be914e.tar.gz | |
Merge pull request #140 from jhunkeler/version-compare
Add version comparison code
Diffstat (limited to 'src/lib/delivery/include')
| -rw-r--r-- | src/lib/delivery/include/delivery.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/delivery/include/delivery.h b/src/lib/delivery/include/delivery.h index e524f4d..c091182 100644 --- a/src/lib/delivery/include/delivery.h +++ b/src/lib/delivery/include/delivery.h @@ -21,6 +21,7 @@ #include "wheel.h" #include "wheelinfo.h" #include "environment.h" +#include "version_compare.h" #define DELIVERY_PLATFORM_MAX 4 #define DELIVERY_PLATFORM_MAXLEN 65 @@ -451,6 +452,16 @@ int delivery_exists(struct Delivery *ctx); int delivery_overlay_packages_from_env(struct Delivery *ctx, const char *env_name); /** + * Conda does not handle version suffixes well, if at all. For example, if pkg-1.2.3rc1 is installed Conda will + * silently ignore a request to install pkg-1.2.3. This function serves as a workaround by comparing the version + * on-disk, and the requested version from the package list, and if the versions are not equal the on-disk package + * is replaced by the one in the package list. + * + * When a package is present in the list without a pinned version it will be reinstalled with whatever is available + */ +int delivery_conda_enforce_package_version(struct Delivery *ctx, const char *env_name, const char *name); + +/** * Retrieve remote deliveries associated with the current version series * @param ctx Delivery context * @return -1 on error |
