mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
5921c63a01
commit
42b3bfbbfe
8
src/quotes/gnc-fq-helper.in
Normal file → Executable file
8
src/quotes/gnc-fq-helper.in
Normal file → Executable 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
1
src/quotes/gnc-fq-update.in
Normal file → Executable 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:
|
||||
|
Loading…
Reference in New Issue
Block a user