Change in libosmocore[master]: osmo-release.sh: support epoch

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Fri Feb 26 08:02:53 UTC 2021


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/23112 )


Change subject: osmo-release.sh: support epoch
......................................................................

osmo-release.sh: support epoch

Related: OS#5046
Change-Id: I5d9d18d7cc84f185222ee176e6546bb3553a3598
---
M osmo-release.sh
1 file changed, 17 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/12/23112/1

diff --git a/osmo-release.sh b/osmo-release.sh
index 31cd1a0..4d002cb 100755
--- a/osmo-release.sh
+++ b/osmo-release.sh
@@ -99,6 +99,15 @@
 	exit 1
 fi
 
+# Add missing epoch (OS#5046)
+NEW_VER_WITH_EPOCH="$NEW_VER"
+case "$VERSION" in
+*:*)
+	epoch="$(echo "$VERSION" | cut -d: -f1)"
+	NEW_VER_WITH_EPOCH="$epoch:$NEW_VER"
+	;;
+esac
+
 echo "Releasing $VERSION -> $NEW_VER..."
 
 check_configureac_debctrl_deps_match
@@ -169,7 +178,14 @@
 	git add TODO-RELEASE
 fi
 
-gbp dch --debian-tag='%(version)s' --auto --meta --git-author --multimaint-merge --ignore-branch --new-version="$NEW_VER"
+gbp dch \
+	--debian-tag='%(version)s' \
+	--auto \
+	--meta \
+	--git-author \
+	--multimaint-merge \
+	--ignore-branch \
+	--new-version="$NEW_VER_WITH_EPOCH"
 dch -r -m --distribution "unstable" ""
 git add ${GIT_TOPDIR}/debian/changelog
 bumpversion --current-version $VERSION $REL --tag --commit --tag-name $NEW_VER --allow-dirty

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/23112
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5d9d18d7cc84f185222ee176e6546bb3553a3598
Gerrit-Change-Number: 23112
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210226/e32f067a/attachment.htm>


More information about the gerrit-log mailing list