[mythtv] [patch] dbcheck.cpp exit removal patch

Daniel Thor Kristjansson danielk at mrl.nyu.edu
Tue Dec 28 21:42:23 UTC 2004


This changes UpgradeTVDatabaseSchema to return true if it was 
successful, and false if it was not. It then removes the exit from 
dbcheck.cpp and moves it to mythfrontend and mythbackend which both call 
UpgradeTVDatabaseSchema.

The idea is that library functions should not exit a program themselves, 
but allow the program logic to handle this, this also means we can log a 
message in mythbackend and could pop-up an informational dialog in 
mythfrontend.

I've also added some additional error checks to UpdateDBVersionNumber(), 
and made the local functions in dbcheck static.

-- Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup-dbcheck-v1.patch.bz2
Type: application/octet-stream
Size: 4445 bytes
Desc: 
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041228/46bb68fc/cleanup-dbcheck-v1.patch.obj


More information about the mythtv-dev mailing list