Skip to content

Commit 6200c9e

Browse files
committed
cease undefined osname warnings for old reports
1 parent ac1561a commit 6200c9e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

cgi-bin/cpantestersmatrix.pl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Author: Slaven Rezic
66
#
7-
# Copyright (C) 2007-2024 Slaven Rezic. All rights reserved.
7+
# Copyright (C) 2007-2025 Slaven Rezic. All rights reserved.
88
# This program is free software; you can redistribute it and/or
99
# modify it under the same terms as Perl itself.
1010
#
@@ -18,7 +18,7 @@ package # not official yet
1818
use strict;
1919
use warnings;
2020
use vars qw($VERSION);
21-
$VERSION = '2.60';
21+
$VERSION = '2.61';
2222

2323
use vars qw($UA);
2424

@@ -1299,9 +1299,11 @@ ($$$)
12991299
$perl_patches{$perl}->{$patch}++ if $patch;
13001300
my $osname = $r->{osname};
13011301
if (!defined $osname) {
1302-
our %warned_undefined_osname;
1303-
if (!$warned_undefined_osname{$dist}++) {
1304-
warn "Undefined osname in report(s) for $dist";
1302+
if (!$r->{fulldate} || $r->{fulldate} ge '2021') { # in the past, there were probably bugs with the reporting tools, causing in undefined osname; do not warn about them
1303+
our %warned_undefined_osname;
1304+
if (!$warned_undefined_osname{$dist}++) {
1305+
warn "Undefined osname in report(s) for $dist";
1306+
}
13051307
}
13061308
$osname = '';
13071309
}

0 commit comments

Comments
 (0)