postfix/pflogsumm-1.1.3-datecalc.patch
Miroslav Lichvar cc205d689d - update to 2.7.1
- update pflogsumm to 1.1.3
2010-06-10 14:22:16 +00:00

15 lines
484 B
Diff

diff -up pflogsumm-1.1.3/pflogsumm.pl.datecalc pflogsumm-1.1.3/pflogsumm.pl
--- pflogsumm-1.1.3/pflogsumm.pl.datecalc 2010-03-20 21:00:42.000000000 +0100
+++ pflogsumm-1.1.3/pflogsumm.pl 2010-06-10 15:57:27.000000000 +0200
@@ -400,8 +400,8 @@ Copyright (C) 1998-2010 by James S. Seym
use strict;
use locale;
use Getopt::Long;
-eval { require Date::Calc };
-my $hasDateCalc = $@ ? 0 : 1;
+require Date::Calc;
+my $hasDateCalc = 1;
my $mailqCmd = "mailq";
my $release = "1.1.3";