Fix nvidia-container-runtime breaks / replaces dependency

The relationship between packages also considers the package revision
when determining validity. This means that 3.5.0-1 is considered
greater than 3.5.0. This changed adds the package revision to the
nvidia-container-runtime breaks / replaces relationship.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2021-09-23 14:32:54 +02:00
parent 77740c2a80
commit bb6f4745e9
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9)
Package: nvidia-container-toolkit Package: nvidia-container-toolkit
Architecture: any Architecture: any
Depends: ${misc:Depends}, libnvidia-container-tools (>= 1.4.0), libnvidia-container-tools (<< 2.0.0), libseccomp2 Depends: ${misc:Depends}, libnvidia-container-tools (>= 1.4.0), libnvidia-container-tools (<< 2.0.0), libseccomp2
Breaks: nvidia-container-runtime (<= 3.5.0), nvidia-container-runtime-hook Breaks: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook
Replaces: nvidia-container-runtime (<= 3.5.0), nvidia-container-runtime-hook Replaces: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook
Description: NVIDIA container runtime hook Description: NVIDIA container runtime hook
Provides a OCI hook to enable GPU support in containers. Provides a OCI hook to enable GPU support in containers.

View File

@ -17,7 +17,7 @@ Source3: oci-nvidia-hook
Source4: oci-nvidia-hook.json Source4: oci-nvidia-hook.json
Source5: LICENSE Source5: LICENSE
Obsoletes: nvidia-container-runtime <= 3.5.0, nvidia-container-runtime-hook Obsoletes: nvidia-container-runtime <= 3.5.0-1, nvidia-container-runtime-hook
Provides: nvidia-container-runtime Provides: nvidia-container-runtime
Provides: nvidia-container-runtime-hook Provides: nvidia-container-runtime-hook
Requires: libnvidia-container-tools >= 1.4.0, libnvidia-container-tools < 2.0.0 Requires: libnvidia-container-tools >= 1.4.0, libnvidia-container-tools < 2.0.0