-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix innreport to be perl 5.12 compatible
- Loading branch information
Showing
4 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
$NetBSD: patch-am,v 1.1 2011/09/25 14:00:09 spz Exp $ | ||
|
||
remove deprecated perl features that don't do anything useful anyway | ||
(replicate change in INN trunk) | ||
|
||
--- ./scripts/innreport.in.orig 2010-03-24 20:10:36.000000000 +0000 | ||
+++ ./scripts/innreport.in | ||
@@ -672,10 +672,6 @@ if (!$NOT_DAILY && defined $output{'defa | ||
# - Specified in section "inn_flow" of innreport.conf. | ||
sub DateCompare { | ||
|
||
- # $[ ... The index of the first element in an array, and of the first | ||
- # character in a substring. Default is 0. | ||
- local $[ = 0; | ||
- | ||
# The 2 dates are near. The range is less than a few days that's why we | ||
# can cheat to determine the order. It is only important if one date | ||
# is in January and the other in December. | ||
@@ -791,7 +787,6 @@ sub ConvDate($) { | ||
|
||
# Compare 2 filenames | ||
sub filenamecmp { | ||
- local $[ = 0; | ||
my ($la, $lb) = ($a, $b); | ||
my ($ya) = $la =~ m/news-notice\.(\d+)\./o; | ||
$ya += 100 if $ya < 90; # Try to pacify the year 2000 ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$NetBSD: patch-an,v 1.1 2011/09/25 14:00:09 spz Exp $ | ||
|
||
remove deprecated perl features that don't do anything useful anyway | ||
(replicate change in INN trunk) | ||
|
||
--- ./scripts/innreport_inn.pm.orig 2010-03-24 20:10:36.000000000 +0000 | ||
+++ ./scripts/innreport_inn.pm | ||
@@ -2430,7 +2430,6 @@ sub report_unwanted_ng($) { | ||
# Compare 2 dates (+hour), used with sort (arguments $a and $b) | ||
sub datecmp() { | ||
# ex: "May 12 06" for May 12, 6:00am | ||
- local($[) = 0; | ||
# The 2 dates are near. The range is less than a few days that's why we | ||
# can cheat to determine the order. It is only important if one date | ||
# is in January and the other in December. |