Skip to content

Commit

Permalink
Replace '-' with '~' in mig-parted package version string
Browse files Browse the repository at this point in the history
This allows us to create release candidates of the project
using the 'x.y.z-rc.1' version format. '-' is an illegal
character for RPM package versioning, so this commit
replaces all instances for '-' with '~'. This aligns with
the naming of the NVIDIA Container Toolkit packages.

Signed-off-by: Christopher Desiniotis <[email protected]>
  • Loading branch information
cdesiniotis committed Jun 25, 2024
1 parent b3333ca commit 898f02e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deployments/systemd/packages/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ endif
# strip 'v' from version string
PACKAGE_VERSION := $(VERSION:v%=%)

# replace '-' with '~' in the version string
# e.g. 'x.y.z-rc.1' gets represented as 'x.y.z~rc.1'
PACKAGE_VERSION := $(subst -,~,$(PACKAGE_VERSION))

deb: BASE_IMAGE = ubuntu:18.04
deb: ARTIFACTS_DIR = $(DIST_DIR)/deb
deb: DOCKERFILE = $(CURDIR)/deployments/systemd/packages/Dockerfile.deb
Expand Down

0 comments on commit 898f02e

Please sign in to comment.