Research continues... here's the diff that shows the original fix in all
its glory:

http://grecipe-manager.cvs.sourceforge.net/viewvc/grecipe-
manager/grm/src/lib/backends/db.py?r1=1.14&r2=1.12

We need that "coerce_types" function in the patch if actually want to
fix the problem. The key to reproducing the bug is that you need an
empty value for the amount of an ingredient (i.e. an ingredient with no
amount). I know this sounds a bit exotic, but there are lots of recipes
that call for e.g., "parsley, for garnish" and specify no numeric amount
-- these are the things that trigger it.

I'm attaching a 0.13.8 DB that triggers the bug.

** Attachment added: "Minimal Gourmet 0.13.8 Database to trigger upgrade bug"
   http://launchpadlibrarian.net/22002328/recipes.db

-- 
Upgrading from 0.13.x to 0.14.0 wipes out ingredient database
https://bugs.launchpad.net/bugs/291353
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to