Change in osmo-ci[master]: osmocom-latest-packages: Also accept "v" in front of version tags

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Jun 3 18:09:28 UTC 2018


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/9437


Change subject: osmocom-latest-packages: Also accept "v" in front of version tags
......................................................................

osmocom-latest-packages: Also accept "v" in front of version tags

Some projects (notably rtl-sdr) use "v" in front of their version
tags in the git history.  Let's make sure we also recognize those.

Change-Id: I20f9896cc7844a6ddec7ba63bc9a77f548082e2a
---
M scripts/osmocom-latest-packages.sh
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/37/9437/1

diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh
index e37c2e0..15fbc6c 100755
--- a/scripts/osmocom-latest-packages.sh
+++ b/scripts/osmocom-latest-packages.sh
@@ -32,7 +32,7 @@
   [ -d "$1" ] || git clone "git://git.osmocom.org/$1"
   cd "$1"
   git fetch
-  VER=$(git tag -l --sort=v:refname | grep "^[0-9]*.[0-9]*.[0-9]*$" | tail -n 1)
+  VER=$(git tag -l --sort=v:refname | grep "^v\?[0-9]*.[0-9]*.[0-9]*$" | tail -n 1)
   git checkout -f -B "$VER" "refs/tags/$VER"
   gbp buildpackage -d -S -uc -us "--git-export-dir=$output" "--git-debian-branch=$VER"
 

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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I20f9896cc7844a6ddec7ba63bc9a77f548082e2a
Gerrit-Change-Number: 9437
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180603/18d7c459/attachment.htm>


More information about the gerrit-log mailing list