]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Adapt release-tarball-comparison.sh to dotted tag notation
authorMichal Nowak <mnowak@isc.org>
Thu, 16 Mar 2023 11:59:57 +0000 (12:59 +0100)
committerMichal Nowak <mnowak@isc.org>
Wed, 22 Mar 2023 14:58:15 +0000 (15:58 +0100)
Recently, the tag notation format changed:

    v9_19_9     -> v9.19.9
    v9_18_13-S1 -> v9.18.13-S1

release-tarball-comparison.sh needs to adapt.

util/release-tarball-comparison.sh

index ce4feafe1f5fe301e8821d5655695f1923fc0eee..0a3d202f7fab31b035011198c4defd9f405b8530 100755 (executable)
@@ -73,7 +73,7 @@ BIND_VERSION=$(basename "${BIND_TARBALL}" | sed -E "s|bind-(.*)\.tar\.xz|\1|")
 BIND_DIRECTORY="bind-${BIND_VERSION}"
 
 # Prepare a temporary "release" tarball from upstream BIND 9 project.
-run_in_container "git -c advice.detachedHead=false clone --branch $(echo "v${BIND_VERSION}" | tr ".-" "_") --depth 1 https://${GITLAB_USER}:${GITLAB_TOKEN}@gitlab.isc.org/isc-private/bind9.git && \
+run_in_container "git -c advice.detachedHead=false clone --branch v${BIND_VERSION} --depth 1 https://${GITLAB_USER}:${GITLAB_TOKEN}@gitlab.isc.org/isc-private/bind9.git && \
        cd bind9 && \
        if [ $(echo "${BIND_VERSION}" | cut -b 1-5) = 9.16. ]; then \
                git archive --prefix=${BIND_DIRECTORY}/ --output=${BIND_DIRECTORY}.tar HEAD && \