aboutsummaryrefslogtreecommitdiffstats
path: root/check_trans.pl
diff options
context:
space:
mode:
authorDenis Barbier <barbier>2001-08-28 10:05:18 +0000
committerDenis Barbier <barbier>2001-08-28 10:05:18 +0000
commit5aa3f2cb76be53258f1a49f5f30af679a52e5ee3 (patch)
treefba45c6820dc48227742db55f11657e8d3238904 /check_trans.pl
parent99dd4f1859333bb205fb967d6ee5a54031e1f86f (diff)
Fix version number comparison.
CVS version numbers check_trans.pl: 1.34 -> 1.35
Diffstat (limited to 'check_trans.pl')
-rwxr-xr-xcheck_trans.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/check_trans.pl b/check_trans.pl
index e1acb649212..3b61813ed26 100755
--- a/check_trans.pl
+++ b/check_trans.pl
@@ -491,12 +491,14 @@ sub check_file {
my $str;
my $status = 8;
+ my ($numrev) = ($revision =~ m/^1\.(\d+)$/);
+ my ($numoldr) = ($oldr =~ m/^1\.(\d+)$/);
if (!$oldr) {
$oldr = '1.1';
$str = "Unknown status of $name (revision should be $revision)";
} elsif ($oldr eq $revision) {
$status = 4;
- } elsif ($oldr > $revision) {
+ } elsif ($numoldr > $numrev) {
$str = "Broken revision number $oldr for $name, it should be $revision";
} else {
$str = "NeedToUpdate $name from version $oldr to version $revision";

© 2014-2024 Faster IT GmbH | imprint | privacy policy