From 4b43071aae771880b2f40037941e693f3415e753 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Fri, 3 May 2019 00:10:59 -0500 Subject: [PATCH] pkglib: change short commit length change short commit length to be the same to OBS. Now that runtime has a strict depedency version from packages. Like qemu-lite: Now: qemu-lite = 2.11.0+git.87517af Before: qemu-lite >= 2.11.0+git.87517af The rpm fails because the real package version of qemu lite is 2.11.0+git.87517afd72 The commit length comes from the format of OBS '%h' This change the shortcommit length to be the same to OBS and runtime dependencies and packages that include git commit as version use the same format. Signed-off-by: Jose Carlos Venegas Munoz --- obs-packaging/scripts/pkglib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obs-packaging/scripts/pkglib.sh b/obs-packaging/scripts/pkglib.sh index 0de4f0336..014140484 100644 --- a/obs-packaging/scripts/pkglib.sh +++ b/obs-packaging/scripts/pkglib.sh @@ -26,7 +26,7 @@ VERBOSE=false # package was compiled for. DEB_ARCH="$(go env GOARCH)" -short_commit_length=7 +short_commit_length=10 if command -v go; then export GO_ARCH=$(go env GOARCH)