Attached is a patch to fix this. It could do with checking by somebody
more familiar with hwdb than I am.

As far as I can tell, the bug is caused by:
1) clicking the next button during data assembly (as in comment 2)
2) anything else that stops /tmp/hwdb_data.xml being created (e.g. you can 
manually delete the file)

So the patch:
1) disables the next button during data assembly 
2) catches errors in creating the md5 checksum

The patch *doesn't*:
 - fix the similar problem in gnome hwdb (bug #83267)
 - do anything about other causes and results of the data file not being 
created (e.g. bug #108337)

Also, it uses hashlib, which is new in python 2.5. I don't imagine
that'll be an issue at all with gutsy, but the dependencies will need
changing. [or I could rewrite to work with older pythons, of course]

If the patch seems OK, let me know and I'll do the same to the gnome
version.

** Attachment added: "error-checking for md5sum creation"
   http://librarian.launchpad.net/7670141/md5sum.patch

** Tags added: patch

-- 
[apport] hwdb-kde crashed with IndexError in sendData()
https://bugs.launchpad.net/bugs/106331
You received this bug notification because you are a member of Kubuntu
Team, which is a bug assignee.

-- 
kubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to