version.pl: snapshot releases *only* have digits in the tail

Snapshot releases have *only* digits in the tail.  "git describe"
produces tails that have digits in them, but aren't numeric.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2008-11-01 12:57:05 -07:00
parent 4b9358928b
commit b6e36102e6

View File

@ -60,7 +60,7 @@ if ( $line =~ /^([0-9]+)\.([0-9]+)(.*)$/ ) {
die "$0: Invalid input format\n";
}
if ($tail =~ /^\-([0-9]+)/) {
if ($tail =~ /^\-([0-9]+)$/) {
$snapshot = $1;
} else {
undef $snapshot;