rpms/libofx/devel libofx-account-type.patch, NONE, 1.1 libofx.spec, 1.32, 1.33
Bill Nottingham (notting)
fedora-extras-commits at redhat.com
Thu Feb 14 18:48:57 UTC 2008
Author: notting
Update of /cvs/extras/rpms/libofx/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18575
Modified Files:
libofx.spec
Added Files:
libofx-account-type.patch
Log Message:
- add patch for other account types (#415961)
libofx-account-type.patch:
--- NEW FILE libofx-account-type.patch ---
diff -up libofx-0.8.3/lib/ofx_request_statement.cpp.foo libofx-0.8.3/lib/ofx_request_statement.cpp
--- libofx-0.8.3/lib/ofx_request_statement.cpp.foo 2008-02-14 13:40:01.000000000 -0500
+++ libofx-0.8.3/lib/ofx_request_statement.cpp 2008-02-14 13:41:10.000000000 -0500
@@ -63,7 +63,16 @@ OfxAggregate OfxStatementRequest::BankSt
bankacctfromTag.Add( "BANKID", m_account.bankid );
bankacctfromTag.Add( "ACCTID", m_account.accountid );
bankacctfromTag.Add( "ACCTTYPE", "CHECKING" );
- // FIXME "CHECKING" should not be hard-coded
+ if ( m_account.type == OFX_CHECKING_ACCOUNT || m_account.type == OFX_BANK_ACCOUNT )
+ bankacctfromTag.Add( "ACCTTYPE", "CHECKING" );
+ else if ( m_account.type == OFX_SAVINGS_ACCOUNT )
+ bankacctfromTag.Add( "ACCTTYPE", "SAVINGS" );
+ else if ( m_account.type == OFX_MONEYMRKT_ACCOUNT )
+ bankacctfromTag.Add( "ACCTTYPE", "MONEYMRKT" );
+ else if ( m_account.type == OFX_CREDITLINE_ACCOUNT )
+ bankacctfromTag.Add( "ACCTTYPE", "CREDITLINE" );
+ else if ( m_account.type == OFX_CMA_ACCOUNT )
+ bankacctfromTag.Add( "ACCTTYPE", "CMA" );
OfxAggregate inctranTag("INCTRAN");
inctranTag.Add( "DTSTART", time_t_to_ofxdate( m_date_from ) );
diff -up libofx-0.8.3/inc/libofx.h.foo libofx-0.8.3/inc/libofx.h
--- libofx-0.8.3/inc/libofx.h.foo 2008-02-14 13:36:38.000000000 -0500
+++ libofx-0.8.3/inc/libofx.h 2008-02-14 13:39:12.000000000 -0500
@@ -705,7 +705,12 @@ typedef enum{
OFX_BANK_ACCOUNT,
OFX_INVEST_ACCOUNT,
OFX_CREDITCARD_ACCOUNT,
- OFX_INVALID_ACCOUNT
+ OFX_INVALID_ACCOUNT,
+ OFX_CHECKING_ACCOUNT,
+ OFX_SAVINGS_ACCOUNT,
+ OFX_MONEYMRKT_ACCOUNT,
+ OFX_CREDITLINE_ACCOUNT,
+ OFX_CMA_ACCOUNT
} AccountType;
/**
Index: libofx.spec
===================================================================
RCS file: /cvs/extras/rpms/libofx/devel/libofx.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- libofx.spec 14 Feb 2008 17:25:47 -0000 1.32
+++ libofx.spec 14 Feb 2008 18:48:22 -0000 1.33
@@ -10,6 +10,7 @@
License: GPLv2+
Patch: libofx-0.8.3-xml++.patch
Patch2: libofx-assorted-c++-fu.patch
+Patch3: libofx-account-type.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: opensp-devel
BuildRequires: curl-devel
@@ -53,6 +54,7 @@
autoconf
%endif
%patch2 -p1
+%patch3 -p1
rm -rf ./doc/ofx_sample_files/CVS
chmod 644 ./doc/ofx_sample_files/*
@@ -97,6 +99,7 @@
%changelog
* Thu Feb 14 2008 Bill Nottingham <notting at redhat.com> - 0.8.3-5
- fix build with gcc-4.3
+- add patch for other account types (#415961)
* Wed Oct 10 2007 Bill Nottingham <notting at redhat.com> - 0.8.3-4
- rebuild for buildid
More information about the fedora-extras-commits
mailing list