tracker r1589 - in branches/indexer-split: . src/tracker-indexer
- From: carlosg svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1589 - in branches/indexer-split: . src/tracker-indexer
- Date: Thu, 5 Jun 2008 12:03:19 +0000 (UTC)
Author: carlosg
Date: Thu Jun 5 12:03:18 2008
New Revision: 1589
URL: http://svn.gnome.org/viewvc/tracker?rev=1589&view=rev
Log:
2008-06-05 Carlos Garnacho <carlos imendio com>
* src/tracker-indexer/tracker-indexer-db.c
(tracker_db_create_service): Take into account directories when
marking services as disabled.
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/tracker-indexer/tracker-indexer-db.c
Modified: branches/indexer-split/src/tracker-indexer/tracker-indexer-db.c
==============================================================================
--- branches/indexer-split/src/tracker-indexer/tracker-indexer-db.c (original)
+++ branches/indexer-split/src/tracker-indexer/tracker-indexer-db.c Thu Jun 5 12:03:18 2008
@@ -133,7 +133,7 @@
{
gchar *id_str, *service_type_id_str;
gchar *dirname, *basename;
- gboolean is_dir, is_symlink;
+ gboolean is_dir, is_symlink, enabled;
if (!service) {
return FALSE;
@@ -163,8 +163,11 @@
"0", /* aux ID */
NULL);
- /* FIXME: make it work for dirs */
- if (!tracker_service_get_show_service_files (service)) {
+ enabled = (is_dir) ?
+ tracker_service_get_show_service_directories (service) :
+ tracker_service_get_show_service_files (service);
+
+ if (!enabled) {
tracker_db_interface_execute_query (iface, NULL,
"Update services set Enabled = 0 where ID = %d",
id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]