From cf08cf97facf9e07e9382abfb140fcbe029f7512 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 3 Sep 2014 05:47:31 +0000 Subject: * tool/make-snapshot (package): no teeny means a branch since 2.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/make-snapshot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool/make-snapshot') diff --git a/tool/make-snapshot b/tool/make-snapshot index 9fb384205f..f68a9e44ea 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -140,8 +140,8 @@ def package(rev, destdir) patchlevel = true tag = "p#{$4}" url = SVNURL + "tags/v#{$1}_#{$2}_#{$3}_#{$4}" - when /\A(\d+)\.(\d+)\.(\d+)\z/ - if $1 > "2" || $1 == "2" && $2 >= "1" + when /\A(\d+)\.(\d+)(?:\.(\d+))?\z/ + if $3 && ($1 > "2" || $1 == "2" && $2 >= "1") patchlevel = true tag = "" url = SVNURL + "tags/v#{$1}_#{$2}_#{$3}" -- cgit v1.2.3