summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tracker-miner-fs: fix buildwip/index-mount-pointsCosimo Cecchi2015-01-271-3/+2
|
* Revert "libtracker-common: Moved TrackerStorage to tracker-miner-fs, not ↵Cosimo Cecchi2015-01-278-54/+31
| | | | | | needed by others" This reverts commit b78ae1d600f227bd4b77744648d5cde4e09d4640.
* tracker-miner-fs: Make sure we destroy process data in all casesMartyn Russell2015-01-271-33/+57
| | | | Use use_data_free_func in g_bus_watch_name().
* libtracker-miner: Cleaned up tracker_miner_fs_mount_add() functionMartyn Russell2015-01-271-16/+13
| | | | | | | | - Fixed memory leaks - Used const types for const returns - Avoided duplicate messaging - Added checks for valid UUID returns - Avoided freeing const char*
* tracker-miner-fs: Add 'IndexFileForProcess' DBus methodFelipe Borges2015-01-273-32/+153
| | | | | | | | This method indexes a given path and watches the request sender bus name. It stops the indexing process when no bus names are associated with the given file. Fixes GB#680834
* libtracker-miner: Add tracker_miner_fs_mount_add()Felipe Borges2015-01-272-0/+118
| | | | | | | This function allows adding a mount point to the store, regardless of the state of the index-removable-devices and index-optical-discs gsettings options. It is a mechanism to escape the strict duality dictated by these gsettings keys.
* Mechanically adjust for libmediaart-2.0Yanko Kaneti2015-01-265-7/+12
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=743250
* Updated Greek translationDimitris Spingos2015-01-171-1495/+1577
|
* libtracker-miner: Restrict the amount of data that is logged for errorsDebarshi Ray2015-01-131-2/+12
| | | | | | | | | | | | | | | | SPARQL update strings can be very long if the entire text of a document is being stored. Dumping these huge strings to the log eats up disk space and makes them harder to follow. However, often, the occurence of such an error indicates a broken extractor. In those cases, knowing part of the SPARQL can help in identifying the file that triggered the error. Usually the "nie:plainTextContent" property is the last one in the string, so we truncate the error messages at the first occurance of this property to achieve the best of both worlds. https://bugzilla.gnome.org/show_bug.cgi?id=735406
* Updated Galician translationsFran Dieguez2015-01-121-1447/+1487
|
* Updated Basque languageInaki Larranaga Murgoitio2015-01-081-1317/+1646
|
* miners: Detect locale changes only when the miner could be constructedDebarshi Ray2015-01-052-281/+273
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=742391
* miner-fs: Give clearer warning when XDG user dirs are unconfiguredSam Thursfield2014-12-312-43/+66
| | | | | | | | | | | | | | | | | | | | | | | | | If Tracker can't resolve special dirs like &DOCUMENTS to real path names, it now gives a warning like this: (tracker-miner-fs:7207): Tracker-WARNING **: Unable to get XDG user directory path for special directory &DOCUMENTS. Ignoring this location. Previously (since commit 5f06c134f4f6da02027c813322e13c220b51cd0a) the user would see this rather more scary output: (tracker-miner-fs:6046): GLib-GIO-CRITICAL **: g_file_new_for_path: assertion 'path != NULL' failed (tracker-miner-fs:6046): GLib-GIO-CRITICAL **: g_file_equal: assertion 'G_IS_FILE (file1)' failed (tracker-miner-fs:6046): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed This situation is rare (you need to manually change or break XDG_CONFIG_HOME to really see it) but it's always nice to avoid showing critical errors!
* sandbox: Fix to use new-style config filesSam Thursfield2014-12-311-32/+27
| | | | | The config file format changed in commit 2b53cd5d3aaf046c413fd4afb188c16d7e611f48.
* sandbox: Change how content directory is specifiedSam Thursfield2014-12-311-70/+72
| | | | | | | | Firstly, allow specifying multiple --content options, and allow specifying --content-non-recursive if you really want as well. Also, don't generate an XDG user directories config. It seems a bit weird to be doing this and setting each directory to the same location.
* libtracker-extract: fix logic in guarantee title from fileTim Lunn2014-12-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=742035
* libtracker-extract: fix crash when running unit testsTim Lunn2014-12-291-1/+2
| | | | | | media_art_process is not set when running tracker-extract-info tests https://bugzilla.gnome.org/show_bug.cgi?id=742035
* Use g_unix_signal_add() for signal handlersMartin Kampas2014-12-276-99/+61
| | | | | | | | | | | Identified by functional-tests/17-ontology-changes timeouting randomly. Documentation for g_unix_signal_source_new() explains why it is not safe to call g_main_loop_quit() from a regular UNIX signal handler. Intentionally removed the (main_loop != NULL) tests - this cannot happen. https://bugzilla.gnome.org/show_bug.cgi?id=739234
* tracker-needle: Missing accessible label names on tracker-needle widgetsBrian Nitz2014-12-271-2/+23
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=663687
* Merge branch 'sam/functional-test-60x-fixes'Sam Thursfield2014-12-262-147/+122
|\
| * functional-tests: Fix and improve 601-applications-syncSam Thursfield2014-12-261-1/+19
| | | | | | | | | | | | This test adds data that would normally be added by the FS miner. In order for the resource to be correctly deleted when the file is removed, it must set nie:isStoredAs correctly.
| * functional-tests: Consolidate and clean up 600-applications-cameraSam Thursfield2014-12-261-146/+103
|/
* Merge branch 'sam/functional-test-50x-fixes'Sam Thursfield2014-12-263-3/+15
|\
| * functional-tests: Remove another guarantee-metadata dependencySam Thursfield2014-12-261-2/+2
| |
| * writeback: Improve error when writeback fails due to missing moduleSam Thursfield2014-12-261-1/+7
| |
| * functional-tests: Fix 'not a directory' error in writeback testsSam Thursfield2014-12-261-0/+6
|/ | | | | | | This makes the following error less likely, and clearer when it does occur: (tracker-miner-fs:28886): Tracker-WARNING **: Could not open directory 'file:///home/sam/tracker-tests/writeback': Not a directory
* Merge branch 'sam/functional-test-40x-fixes'Sam Thursfield2014-12-264-5/+33
|\
| * functional-tests: Don't require 'guarantee-metadata' for some testsSam Thursfield2014-12-263-3/+1
| | | | | | | | | | | | Tests shouldn't break just because --enable-guarantee-metadata is not specified at configure time. This feature is off by default so we shouldn't depend on it. See GB#733536.
| * tracker-extract: More helpful error when missing GStreamer pluginsSam Thursfield2014-12-261-2/+32
|/ | | | | | If extraction with GstDiscoverer fails due to lack of a plugin, we can display exactly what plugin was missing rather than just giving a generic error. This makes it a bit easier to fix the problem.
* Merge branch 'sam/functional-test-30x-fixes'Sam Thursfield2014-12-267-191/+145
|\
| * Fix max_depth parameter causing contents of a directory to be ignoredSam Thursfield2014-12-261-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 41e6ab84e7a540b20f8173c2bbaee11de6ef381f, the contents of directories listed in 'index-single-directories' is be ignored. The directory itself appears in the store but the contents do not. The intention of passing max_depth=1 if TRACKER_DIRECTORY_FLAG_RECURSE is false must be to prevent unnecessarily processing any subdirectory nodes that are hanging around in the TrackerFileSystem. However, the documentation of g_node_traverse says: "If depth is 1, only the root is visited. If depth is 2, the root and its children are visited. And so on." Thus, we must pass max_depth+1 to the tracker_file_system_traverse() function so that the files in the directory are processed as well as the directory itself. See also: 243c97fa96a2f6b19bce1acf26946d1a516a0a1c which introduced the 'max_depth' parameter as a way of reducing the number of GFile objects in memory at the same time during crawling.
| * functional-tests: Isolate 3xx-miner tests from each otherSam Thursfield2014-12-265-111/+33
| | | | | | | | | | | | | | | | | | Rather than running all the tests in one environment, create a new environment for each test. Although it's slower this way, it's just too hard to debug test failures when the tests can interfere with each other. I also made them all use the same 'minertest' base class.
| * functional-tests: Improve stopping of child processesSam Thursfield2014-12-261-43/+12
| | | | | | | | | | | | | | | | | | | | | | Instead of using `tracker daemon --kill=miners` to stop the miners, use the Python 'subprocess' module. This ensures only the correct miner process gets killed if more than one is running. (I also found that `tracker daemon --kill-miners` was hanging my system, which was the real motivation for fixing this, but I have no idea why that happened). If a process fails to terminate after we sent it TERM, it now gets sent KILL. Previously the test would wait forever.
| * functional-tests: Many fixes to 3xx-miner testsSam Thursfield2014-12-264-41/+59
| | | | | | | | All 3xx tests should now pass except 2 of the 310-fts-indexing tests.
| * functional-tests: Add await_property_changed() methodSam Thursfield2014-12-261-0/+40
|/ | | | | This allows detecting when a file move has been done, and probably other useful things too.
* Updated German translationChristian Kirbach2014-12-241-33/+50
|
* libtracker-sparql: Document requirement to escape constructed queriesPhilip Withnall2014-12-221-0/+12
| | | | | | | Bring SQL injection to the front of people’s minds when using the APIs so that hopefully they don’t write injectable code. https://bugzilla.gnome.org/show_bug.cgi?id=741777
* functional-tests: Fix bad calls to `tracker daemon` commandSam Thursfield2014-12-222-2/+2
|
* Use crawler's max_depth param of start in file_system_traversePhilip Van Hoof2014-12-225-10/+50
|
* miner-fs: Remove unused argument is_newMartin Kampas2014-12-201-4/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=678986
* miner-fs: Fix tracking file moveMartin Kampas2014-12-201-1/+1
| | | | | | | | | | | | | | | | | Identified by MinerCrawlTest::test_07_move_from_monitored_to_monitored (300-miner-basic-ops.py) In item_move() it fails to get source_iri, does not check it's validity and uses it in the DELETE expression of the SPARQL query constructed there. Broken since d836f00 (libtracker-miner: Store iri transiently as GFile qdata) - tracker_file_notifier_get_file_iri() is added 'force' argument and (wrapped with lookup_file_urn) passed force=FALSE from item_move(). This call then fails for regular files because only directories are cached once crawling has completed as stated in the comment in finish_current_directory() in libtracker-miner/tracker-file-notifier.c. https://bugzilla.gnome.org/show_bug.cgi?id=678986
* Updated Hungarian translationBalázs Úr2014-12-201-1050/+1104
|
* Updated Spanish translationDaniel Mustieles2014-12-181-1048/+1108
|
* libtracker-miner: Finished documenting public APIsMartyn Russell2014-12-155-16/+95
| | | | | Only 2 left, mainly because they're a NOP or don't work currently and need fixing.
* tracker-miner-fs: On error, return correct defaults for configMartyn Russell2014-12-151-2/+2
| | | | | This covers tracker_config_get_crawling_interval() and _get_removable_days_threshold() which were returning just 0.
* libtracker-miner: Improve documentation for tracker_miner_fs_{s|g}et_throttle()Martyn Russell2014-12-151-7/+9
|
* libtracker-miner: Renamed internal define TRACKER_MAX_TIMEOUT_INTERVALMartyn Russell2014-12-153-8/+4
| | | | Use _CRAWLER_ in there so we know where it comes from.
* Updated Czech translationMarek Černocký2014-12-151-1060/+986
|
* Updated Brazilian Portuguese translationRafael Ferreira2014-12-141-34/+50
|
* build: Make life easier with autogen by adding args if none are providedMartyn Russell2014-12-122-1/+37
| | | | | | | | | | This patch does 3 things: 1. Fix the --with-enca (which should have been --enable-enca and was failing) 2. If JHBUILD_PREFIX is set, use that when no args are given 3. If no args are given, use the make distcheck default args in place This will ensure documentation and unit tests are build most of the time and things don't break so often :)