diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c28610d..426ccbd4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,8 +36,8 @@ jobs: - name: Install Dependencies run: | cpanm -iqn ExtUtils::MakeMaker Test::Most Clone - cpanm -iqnf --skip-satisfied LWP::Simple::WithCache CGI::IDS - cpanm -iqn --skip-satisfied HTML::Entities + cpanm -iqnf --skip-satisfied LWP::Simple::WithCache CGI::IDS DB_File + cpanm -iqn --skip-satisfied HTML::Entities LWP::Protocol::https cpanm -ivn --installdeps . - name: Make Module run: | diff --git a/Makefile.PL b/Makefile.PL index 8ec7af14..7185f878 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -300,7 +300,7 @@ WriteMakefile( PREREQ_PM => { 'Carp' => 0, # 'BerkeleyDB' => 0, - # 'DB_File' => 0, + 'DB_File' => 0, 'DBI' => 0, 'Digest::MD5' => 0, 'File::pfopen' => '0.02', diff --git a/createdatabase.PL b/createdatabase.PL index 4b867b84..682d10f9 100755 --- a/createdatabase.PL +++ b/createdatabase.PL @@ -4315,13 +4315,13 @@ print __LINE__, "\n"; return $row } } - if(!defined($row)) { + if(defined($row)) { # name/place/is_in = Carpenter Rd/U.S. Route 82 in Texas/Québec, Canada # name/place/is_in = Chaudière Bridge/Tenth Avenue (Manhattan)/Québec, Canada - print STDERR "$file: Can't parse name = $name, place = $place, is_in = $is_in\n"; - return + print "$file: Can't parse name = $name, place = $place, is_in = $is_in\n"; + } else { + return $row } - return $row } elsif((scalar(@is_in_fields) == 3) && ($is_in_fields[0] eq 'Canada')) { print __LINE__, "\n"; # name/place/is_in = Hébertville/undef/Canada,Québec,Saguenay Lac-St-Jean