From: Yann Dirson Date: Thu, 14 Dec 2023 14:57:36 +0000 (+0100) Subject: ci/deb: don't attempt package renaming if version did not need mangling X-Git-Tag: 0.3.0~2^2~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=43d3a0c680623b7f83c5e003e477cf7f4d5da762;p=xen-guest-agent.git ci/deb: don't attempt package renaming if version did not need mangling Signed-off-by: Yann Dirson --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07d9761..dc810bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -243,7 +243,12 @@ pkg-deb-amd64: # mangle names to avoid chars rejected by the gitlab package registry, # see https://gitlab.com/gitlab-org/gitlab/-/issues/413517 - - for FILE in *.deb; do mv $FILE $(echo $FILE | tr "~" "-"); done + - | + if [ "${UPSTREAMVERSION}" != "${TILDEVERSION}" ]; then + for FILE in *.deb; do + mv $FILE $(echo $FILE | tr "~" "-") + done + fi - apt-ftparchive generate ../../apt-ftparchive.conf