commit 374545d552c403fad50aa95a32c6b7e9ca548748
Author: Christophe Fergeau <[email protected]>
Date: Tue Oct 20 12:48:09 2009 +0200
only attempts to write sqlite databases on devices that supports it
src/itdb_itunesdb.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 164f46a..74b339f 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -5653,8 +5653,10 @@ static gboolean itdb_write_file_internal (Itdb_iTunesDB
*itdb,
fexp->wcontents->pos,
&fexp->error);
- if (itdb_sqlite_generate_itdbs(fexp) != 0) {
- fprintf(stderr, "ERROR: There was an error while generating the itdb
sqlite database files.\n");
+ if (itdb_device_supports_sqlite_db (itdb->device)) {
+ if (itdb_sqlite_generate_itdbs(fexp) != 0) {
+ fprintf(stderr, "ERROR: There was an error while generating the
itdb sqlite database files.\n");
+ }
}
if (!fexp->error)
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2