1 |
commit: 226a11deea595aed4c4bbfd4aeec285923867e0f |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 25 23:57:18 2015 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 25 23:57:18 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=226a11de |
7 |
|
8 |
Always raise problems from create/delete if calling from maildir indexing calls. |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
--- |
13 |
ag | 6 +++--- |
14 |
1 file changed, 3 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/ag b/ag |
17 |
index 5602df5..c220b9d 100755 |
18 |
--- a/ag |
19 |
+++ b/ag |
20 |
@@ -154,8 +154,8 @@ Ag::Utils.proc_count = $options.jobs |
21 |
|
22 |
def do_full |
23 |
abort "Wrong argument type: #{$options.argmode.to_s}" unless $options.argmode == :dir |
24 |
- do_delete_index(ignore_missing: true) unless $options.readonly |
25 |
- do_create_index(ignore_exists: true) |
26 |
+ do_delete_index(ignore_missing: true, _raise: true) unless $options.readonly |
27 |
+ do_create_index(ignore_exists: true, _raise: true) |
28 |
|
29 |
messages = $maildir.list(:cur) |
30 |
|
31 |
@@ -180,7 +180,7 @@ end |
32 |
def do_incremental |
33 |
abort "Wrong argument type: #{$options.argmode.to_s}" unless $options.argmode == :dir |
34 |
messages = $maildir.list(:new) |
35 |
- do_create_index(ignore_exists: true) |
36 |
+ do_create_index(ignore_exists: true, _raise: true) |
37 |
|
38 |
opts = { |
39 |
:in_processes => Ag::Utils.proc_count, |