From: Graham Knop Date: Wed, 12 Aug 2015 16:50:28 +0000 (-0400) Subject: calculate version parts correctly for short versions X-Git-Tag: v0.003000~59 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=47ac0560b67fb772951eaaa699884950393e5fd8;p=p5sagit%2FDistar.git calculate version parts correctly for short versions --- diff --git a/helpers/bump-version b/helpers/bump-version index 6b60641..89fac0c 100755 --- a/helpers/bump-version +++ b/helpers/bump-version @@ -116,6 +116,7 @@ sub version_parts { if (!$dotted && @parts == 2) { my $dec = pop @parts; $dec =~ s/_//g; + $dec .= "0" x ((- length $dec) % 3); push @parts, $dec =~ /(\d{1,3})/g; } $_ += 0 for @parts;