1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

* WgetFeature.pm: Fixed finding of WgetFeature.cfg when using separate

build dirs.
 * WgetFeature.pm: Fixed warning from BLOCK eval, made it indo EXPR eval

This fixes 'make distcheck' and removes a warning.
This commit is contained in:
Pär Karlsson 2014-11-03 13:45:45 +01:00 committed by Tim Rühsen
parent c6300a3ac7
commit 5e71d5aea1
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2014-11-03 Pär Karlsson <feinorgh@gmail.com>
* WgetFeature.pm: Fixed finding of WgetFeature.cfg when using separate
build dirs.
* WgetFeature.pm: Fixed warning from BLOCK eval, made it indo EXPR eval
2014-11-03 Tim Ruehsen <tim.ruehsen@gmx.de>
* added new test Test-proxied-https-auth-keepalive.px

View File

@ -7,18 +7,18 @@ our $VERSION = 0.01;
use Carp;
use English qw(-no_match_vars);
use FindBin;
use WgetTests;
our %SKIP_MESSAGES;
{
open my $fh, '<', 'WgetFeature.cfg'
or croak "Cannot open 'WgetFeature.cfg': $ERRNO";
my $cfgfile = "$FindBin::Bin/WgetFeature.cfg";
open my $fh, '<', $cfgfile
or croak "Cannot open '$cfgfile': $ERRNO";
my @lines = <$fh>;
close $fh or carp "Cannot close 'WgetFeature.cfg': $ERRNO";
eval {
@lines;
1;
} or carp "Cannot eval 'WgetFeature.cfg': $ERRNO";
close $fh or carp "Cannot close '$cfgfile': $ERRNO";
my $evalstr = join q{}, @lines;
eval { $evalstr } or carp "Cannot eval '$cfgfile': $ERRNO";
}
sub import