]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
monotone.pm: while we're still only checking the major and minor
authorThomas Keller <me@thomaskeller.biz>
Tue, 28 Dec 2010 00:55:12 +0000 (01:55 +0100)
committerThomas Keller <me@thomaskeller.biz>
Tue, 28 Dec 2010 00:55:12 +0000 (01:55 +0100)
part of the version number of the monotone binary, we do not want
to give false alarm on patch or development versions

IkiWiki/Plugin/monotone.pm

index 75bf2f458a48e461eadb91c44ffb9d21e89260c4..02690b10e6388f54bb6b85fbf42a9fa5b94c6dfc 100644 (file)
@@ -42,7 +42,7 @@ sub checkconfig () {
 
        my $version=undef;
        while (<MTN>) {
-               if (/^monotone (\d+\.\d+) /) {
+               if (/^monotone (\d+\.\d+)(?:(?:\.\d+){0,2}|dev)? /) {
                        $version=$1;
                }
        }