Restore Date::Manip to quotes modules.

Gnc-fq-helper needs it to parse date and time strings from Finance::Quote.
The comment about using the iso-date field is removed because F::Q no
longer provides it.
This commit is contained in:
John Ralls 2015-07-07 13:02:18 -07:00
parent 5921c63a01
commit 42b3bfbbfe
2 changed files with 27 additions and 30 deletions

8
src/quotes/gnc-fq-helper.in Normal file → Executable file
View File

@ -25,11 +25,7 @@ use strict;
use English;
use FileHandle;
# The following include is needed for the ParseDateString function.
# This should eventually be replaced with a requirement for F::Q
# version 1.11 (or better) and the use of the 'isodate' field to
# handle the date part of the conversion. Still need a method to
# handle the time conversion.
# Date::Manip provides ParseDate, ParseDateString, and UnixTime.
use Date::Manip;
=head1 NAME
@ -122,7 +118,7 @@ non-zero - failure
# signature so this works OK.
sub check_modules {
my @modules = qw(Finance::Quote);
my @modules = qw(Finance::Quote Date::Manip);
my @missing;
foreach my $mod (@modules) {

1
src/quotes/gnc-fq-update.in Normal file → Executable file
View File

@ -36,6 +36,7 @@ if ($( != 0) {
exit 0 if ($input ne "y");
}
CPAN::Shell->install('Date::Manip'); #Required by gnc-fq-helper
CPAN::Shell->install('Finance::Quote');
## Local Variables: