1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-25 00:53:43 +00:00
Commit graph

487 commits

Author SHA1 Message Date
f179d1fac5 Give more details when plugin discovery fails for a legit reason.
Skip files the whose mime type is not application/x-sharedlib,
which would be the ones allowed to fail loading. All errors on
failed dlopen() attempts now cause the code to throw.
2017-08-23 20:52:49 +01:00
d4d3566421 Move SingleFileTask into a file of its own so it can be used elsewhere. 2017-08-23 11:00:13 +01:00
2fb6777eb8 Create tables on postgres if they don't exist. 2017-08-22 09:03:44 +01:00
6df2a4db43 Workaround for a bug in gcc. It's fixed in gcc 7. 2017-08-20 04:45:04 +01:00
0770ca704b Show which files were matched on the index when locating by hash.
Not sure why those changes were in my stash, I thought I had
committed all this already.
2017-08-19 15:32:07 +01:00
42d6ad0eac Accept c-string queries. 2017-08-19 15:15:43 +01:00
e85a900974 Fix build error in release. 2017-08-18 00:38:49 +01:00
6047045982 Add missing header file 2017-08-18 00:34:47 +01:00
12147df2b4 Fix warning in release. 2017-08-18 00:32:58 +01:00
7e6d13b496 Print matched items by hash. Only print as deep as needed. 2017-08-18 00:24:54 +01:00
a793f7b289 moar tests 2017-08-18 00:24:54 +01:00
7f50f264e5 Implement make_filerecord_tree() 2017-08-18 00:24:54 +01:00
929c5b8adf Add a unit test for PathName and fix the errors I found.
The pool was storing strings and references to it. References
became invalid as strings got moved around, as a consequence of
push_back() in the owner container. I'm storing references in
a custom StrRange struct now, and string refs are built on the
fly when one is needed.
2017-08-18 00:24:54 +01:00
93fe091303 Put the generic split() in its own file. 2017-08-18 00:24:54 +01:00
527f8cedea Add a generic split() function. 2017-08-18 00:24:54 +01:00
40f98fb382 Fix indentation and use sock for redis connections. 2017-08-18 00:24:54 +01:00
9987d2b97e Remove unused variables 2017-08-18 00:24:54 +01:00
6c2431a3d0 Add swap() method. 2017-08-18 00:24:54 +01:00
59eff8ff56 Allow sock connections to redis. 2017-08-18 00:24:54 +01:00
106b72bf0e Skip mime errors if user passed --ignore-errors. 2017-08-12 21:33:57 +01:00
2318bc01ee Fix assert due to necrophily. 2017-08-12 21:25:27 +01:00
23098c9fe0 Use a compiler-independent way to say -fPIC 2017-03-19 21:45:13 +00:00
9d24a108d8 Hide the cmake warning from gtest.
Really gtest, sort it out already!
2016-08-10 01:48:27 +02:00
08a6c0d73d Detect compiler to use.
For example if you run the script from dindexer/clang_debug
you will tell cmake to make a debug build using clang.
You can also use gcc_debug but there is no way to specify
a particular version.
2016-08-02 02:11:05 +02:00
a10982533e Add helper scripts for wrapping cmake invocation
export_compile_commands assumes you have your working copy in
$HOME/dev/code/dindexer and you are running it from your build
directory, which is in something like
$HOME/dev/build/dindexer/<config>

It will then invoke cmake with CMAKE_EXPORT_COMPILE_COMMANDS ON
for YouCompleteMe to work. The exported .json file is
automatically symlinked into your working copy. Any previous
symlink or file is deleted from your working copy first, so if
you run this script for Release and then for Debug, the appropriate
symlink to Debug will be in your working tree.

cmake_default simply wraps export_compile_commands passing
default cmake values I normally like to use.
2016-08-02 01:21:34 +02:00
ec8e451481 Add YouCompleteMe files to gitignore 2016-08-02 00:10:35 +02:00
2e5bb32439 Improve flat_git script.
It now has a clone subcommand that does the same thing as before,
and a status subcommand that tells the user what submodules
are flattened.
2016-07-27 23:46:11 +02:00
b520b2f3d4 Try to fix error during make install. 2016-07-15 20:14:40 +01:00
f28ff13492 travis is not getting the -fPIC right for pq it seems.
Also make top-level cmake file default to Release if
no build type is given.
2016-07-15 20:02:42 +01:00
06abcab627 Fix install command for hiredis in travis script 2016-07-15 19:39:20 +01:00
32ca308982 Compile hiredis manually because the one from travis dates back to 2011 2016-07-15 19:26:42 +01:00
3cf0f95343 Add libev to travis config 2016-07-15 19:11:30 +01:00
e6ea0abe38 Update incredis, see if it fixes the build on travis 2016-07-15 19:05:01 +01:00
1b80d85d7e Fix travis config 2016-07-15 18:51:50 +01:00
53540e40d8 Fix incredis.hpp not found error. 2016-07-15 18:47:57 +01:00
ccf13d7dfe Buildfix when DINDEXER_WITH_MEDIA_AUTODETECT=off 2016-07-15 17:45:48 +01:00
ac79665c9e Need travis to build boost-regex too... 2016-07-15 17:24:12 +01:00
b84c31fb15 Buildfix on travis.
Don't include incredis when not needed, or cmake will look for hiredis.
Install hiredis and enable redis backend explicitly.
2016-07-15 17:12:40 +01:00
2467f2f12d Fix a bug with the script not detecting non-empty
directories properly. It was looking for a relative path,
but the base path would change across invocations of clone_submodules().
2016-07-15 16:55:06 +01:00
29c71c9222 Merge 2016-07-15 15:51:42 +01:00
062b927d39 Add unlicense license to flat_git. 2016-07-15 15:47:21 +01:00
7804fbccbc Import flat_git tool 2016-07-15 15:23:38 +01:00
45ff635ee1 Update list of submodules to be ignored by flat_git 2016-07-15 15:17:55 +01:00
b021c36080 Update submodules 2016-07-15 15:11:45 +01:00
29c6e084b3 Update submodules 2016-07-15 15:00:54 +01:00
5ddd8d9408 Update submodules 2016-07-15 14:55:33 +01:00
e5814a5575 Buildfix in redis backend 2016-07-14 18:13:30 +01:00
f96fa212d6 Remove Sprout - it's not used by this project anymore.
duckhandy still uses it, and it pulls it in by itself.
2016-07-14 18:04:25 +01:00
6478b45dbf Updated submodules 2016-07-14 17:31:56 +01:00
2f6c4f3dab Remove incredis and import it as a submodule. 2016-07-14 17:30:45 +01:00