From fd6a82b1abc1b2620372444772e3e38a4fea92cb Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Sat, 16 Mar 2024 10:49:16 +0100 Subject: [PATCH] parse: fix missing occurrence of ${VERSION_SEPARATOR} In case of ${STABLE}, the version line comes from a previous utag, which means it was written by umpf itself using ${VERSION_SEPARATOR}, which was previously hard-coded as "-". Use it also when parsing back the version. Fixes: a864fe60229d09ad1962 (2023-04-20, "umpf: split off VERSION_SEPARATOR from VERSION") --- umpf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umpf b/umpf index e9728a3..9bf9019 100755 --- a/umpf +++ b/umpf @@ -928,7 +928,7 @@ parse() { test -n "${content}" || bailout "${cmd} line without value" if ${STABLE}; then local name="$(<"${STATE}/name")" - local version="$(sed "s;${name}/\([0-9]\{8\}\)-.*;\1${VERSION_SEPARATOR}${VERSION};" <<< "${content}")" + local version="$(sed "s;${name}/\([0-9]\{8\}\)${VERSION_SEPARATOR}.*;\1${VERSION_SEPARATOR}${VERSION};" <<< "${content}")" local tagname="${name}/${version}" echo "${version}" > "${STATE}/version" echo "${tagname}" > "${STATE}/tag"