According to Paul Fenwick <[EMAIL PROTECTED]>:

Salut !

>       I've been writing a regression testing suite for the stock-quote
> functions of GnuCash.  

While you are on it, is it possible to ignore stocks that have an empty
"security" value ? Because there is a bug in GnuCash that prevent me from
removing the source for price quotes, making gnc-price not updating all the
other.

I attach the small patch to src/quotes/gnc-prices.in from current CVS so you
just need to include it :=)

Hub

diff -c -r1.3 gnc-prices.in
*** src/quotes/gnc-prices.in    2000/04/09 01:43:40     1.3
--- src/quotes/gnc-prices.in    2000/04/14 10:31:29
***************
*** 140,145 ****
--- 140,150 ----
      $accinfo = gnucash::xaccAccountGetAccInfo ($acct);
      $invacct = gnucash::xaccCastToInvAcct ($accinfo);
  
+     if ($security eq "") 
+     {
+        print "unknown. skipping...\n";
+        next;
+     }
      if ($invacct)
      {
        $quotesrc = gnucash::xaccInvAcctGetPriceSrc ($invacct);


--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]

Reply via email to