summaryrefslogtreecommitdiff
path: root/jenkinstool
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-09-29 19:26:55 +0100
committerLars Wirzenius <liw@liw.fi>2012-09-29 19:26:55 +0100
commit99e6dc40e9aeb3ee27cca6a7294754c276f43ab2 (patch)
tree2e26cb46318b39acead07320e5cedcd5cc9cd4a9 /jenkinstool
parent21fb320b6f3b5cedfa88e7509e332a8a7b488043 (diff)
downloadjenkinstool-99e6dc40e9aeb3ee27cca6a7294754c276f43ab2.tar.gz
Handle multiple tags for bzr commits
Diffstat (limited to 'jenkinstool')
-rwxr-xr-xjenkinstool6
1 files changed, 5 insertions, 1 deletions
diff --git a/jenkinstool b/jenkinstool
index da76711..0ca105e 100755
--- a/jenkinstool
+++ b/jenkinstool
@@ -96,7 +96,11 @@ is_release()
if [ -d .bzr ]
then
- if bzr log -l1 | grep -Fx "tags: ${project}-${version}"
+ if bzr log -l1 |
+ sed -n '/^tags: /s///p' |
+ tr ',' '\n' |
+ tr -d ' ' |
+ grep -Fx "${project}-${version}"
then
return 0
else