path: root/scripts/
diff options
authorHarald Welte <>2018-06-04 14:07:02 +0200
committerHarald Welte <>2018-06-04 14:09:21 +0200
commit9f7affb20e90f28f3b6eec0718dc96914906b35e (patch)
treea68ed973b8127df3dc2b33c63d0eda960ffcceb5 /scripts/
parentc4f4290f3ac3f18bc44d86cd5b4e048167d6e5be (diff)
Revert "osmocom-latest-packages: Also accept "v" in front of version tags"
This reverts commit 5b2bb86e8ada837732f06bb4a77779cdbca73496. While it was intended to enable automatic "latest" builds from rtl-sdr, it breaks builds e.g. of libosmo-abis, where we have both (new) tags without 'v' and old tags with 'v', and now the older 'v' tags win due to lexicographical sorting :( Change-Id: I1c8d2ab18e389a8c2c41082d997f101d72c3acc0
Diffstat (limited to 'scripts/')
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ b/scripts/
index 6f60ef8..e8d61a3 100755
--- a/scripts/
+++ b/scripts/
@@ -32,7 +32,7 @@ build() {
[ -d "$1" ] || git clone "git://$1"
cd "$1"
git fetch
- VER=$(git tag -l --sort=v:refname | grep "^v\?[0-9]*.[0-9]*.[0-9]*$" | tail -n 1)
+ VER=$(git tag -l --sort=v:refname | grep "^[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"